Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2141)

Unified Diff: content/shell/browser/layout_test/layout_test_content_browser_client.cc

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/shell/browser/layout_test/layout_test_content_browser_client.cc
diff --git a/content/shell/browser/layout_test/layout_test_content_browser_client.cc b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
index 25425570f0e9857587af895059060156d6912554..3ecacd1d1af74463128bf84e353a371926949a7a 100644
--- a/content/shell/browser/layout_test/layout_test_content_browser_client.cc
+++ b/content/shell/browser/layout_test/layout_test_content_browser_client.cc
@@ -68,12 +68,20 @@ void LayoutTestContentBrowserClient::RenderProcessWillLaunch(
partition->GetQuotaManager(),
partition->GetURLRequestContext()));
- host->GetInterfaceRegistry()->AddInterface(base::Bind(
- &LayoutTestBluetoothFakeAdapterSetterImpl::Create));
-
host->Send(new ShellViewMsg_SetWebKitSourceDir(GetWebKitRootDirFilePath()));
}
+void LayoutTestContentBrowserClient::ExposeInterfacesToRenderer(
+ shell::InterfaceRegistry* registry,
+ RenderProcessHost* render_process_host) {
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner =
+ content::BrowserThread::GetTaskRunnerForThread(
+ content::BrowserThread::UI);
+ registry->AddInterface(
+ base::Bind(&LayoutTestBluetoothFakeAdapterSetterImpl::Create),
+ ui_task_runner);
+}
+
void LayoutTestContentBrowserClient::OverrideWebkitPrefs(
RenderViewHost* render_view_host,
WebPreferences* prefs) {
« no previous file with comments | « content/shell/browser/layout_test/layout_test_content_browser_client.h ('k') | services/shell/public/cpp/interface_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698