Fix search results being clipped in app list.
[chromium-blink-merge.git] / ui / views_content_client / views_content_browser_client.cc
blob4bc3786e65e811af2b49823b5612939242518fe7
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/views_content_client/views_content_browser_client.h"
7 #include "content/shell/browser/shell_browser_context.h"
8 #include "ui/views_content_client/views_content_client_main_parts.h"
10 namespace ui {
12 ViewsContentBrowserClient::ViewsContentBrowserClient(
13 ViewsContentClient* views_content_client)
14 : views_content_main_parts_(NULL),
15 views_content_client_(views_content_client) {
18 ViewsContentBrowserClient::~ViewsContentBrowserClient() {
21 content::BrowserMainParts* ViewsContentBrowserClient::CreateBrowserMainParts(
22 const content::MainFunctionParams& parameters) {
23 views_content_main_parts_ =
24 ViewsContentClientMainParts::Create(parameters, views_content_client_);
25 return views_content_main_parts_;
28 net::URLRequestContextGetter*
29 ViewsContentBrowserClient::CreateRequestContext(
30 content::BrowserContext* content_browser_context,
31 content::ProtocolHandlerMap* protocol_handlers,
32 content::URLRequestInterceptorScopedVector request_interceptors) {
33 content::ShellBrowserContext* shell_context =
34 views_content_main_parts_->browser_context();
35 return shell_context->CreateRequestContext(protocol_handlers,
36 request_interceptors.Pass());
39 } // namespace ui