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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2170313002: Remove OwnedInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 5 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: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index b72dcd85ff22f33c41dbf9f8271815730f6507d6..7bdd9b453722f9059c629bc2c1cc59e1095a20b4 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -987,11 +987,10 @@ void ChromeContentBrowserClient::RenderProcessWillLaunch(
#if defined(ENABLE_PRINTING)
host->AddFilter(new printing::PrintingMessageFilter(id, profile));
#endif
- host->AddOwnedInterface(
- base::MakeUnique<SearchProviderInstallStateImpl>(id, profile),
- &SearchProviderInstallStateImpl::Bind,
+ host->GetInterfaceRegistry()->AddInterface(
+ base::Bind(&SearchProviderInstallStateImpl::Create, id, profile),
content::BrowserThread::GetTaskRunnerForThread(
- content::BrowserThread::IO));
+ content::BrowserThread::UI));
#if defined(ENABLE_SPELLCHECK)
host->AddFilter(new SpellCheckMessageFilter(id));
#endif

Powered by Google App Engine
This is Rietveld 408576698