diff options
author | Andras Becsi <andras.becsi@digia.com> | 2013-07-05 18:34:45 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2013-07-09 13:45:41 +0200 |
commit | 1daab3653e56469868656b32fa87b7f9585ec577 (patch) | |
tree | 10a9cfe812347ed2582a7f68a7ffdc27726e81c0 /lib/web_contents_view_qt.cpp | |
parent | a912e57e189847509efd75d8a4563ad8c7aa1079 (diff) |
Get rid of the need to export content::GetContentClient()
ContentBrowserClientQt is a singleton which makes it possible
to access it from WebContentsViewQt and removes the need for
patching chromium.
This is similar to how ShellContentBrowserClient is managed
in the content shell.
Change-Id: I67f35520935388888c7230806ad543a58b3211c3
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'lib/web_contents_view_qt.cpp')
-rw-r--r-- | lib/web_contents_view_qt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/web_contents_view_qt.cpp b/lib/web_contents_view_qt.cpp index 1ac83ca47..2a44da7ab 100644 --- a/lib/web_contents_view_qt.cpp +++ b/lib/web_contents_view_qt.cpp @@ -51,7 +51,7 @@ WebContentsViewQtClient::WebContentsViewQtClient() // This has to be the first thing we do. : context(WebEngineContext::current()) { - content::BrowserContext* browser_context = static_cast<ContentBrowserClientQt*>(content::GetContentClient()->browser())->browser_context(); + content::BrowserContext* browser_context = ContentBrowserClientQt::Get()->browser_context(); webContentsDelegate.reset(new WebContentsDelegateQt(browser_context, NULL, MSG_ROUTING_NONE, gfx::Size())); } |