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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2470283002: Convert profile import IPCs to Mojo (Closed)
Patch Set: Address review comments Created 4 years, 1 month 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/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index c4f49890569e020ec4f0f8cac114dc2d100c105b..2f7e94be58ce90e2ae76e1c1ab56523f650fc7b5 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -109,10 +109,6 @@ void CreateImageDecoder(mojo::InterfaceRequest<mojom::ImageDecoder> request) {
ChromeContentUtilityClient::ChromeContentUtilityClient()
: filter_messages_(false) {
-#if !defined(OS_ANDROID)
- handlers_.push_back(new ProfileImportHandler());
-#endif
-
#if defined(ENABLE_EXTENSIONS)
handlers_.push_back(new extensions::ExtensionsHandler(this));
handlers_.push_back(new image_writer::ImageWriterHandler());
@@ -204,6 +200,7 @@ void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
registry->AddInterface<net::interfaces::ProxyResolverFactory>(
base::Bind(CreateProxyResolverFactory));
registry->AddInterface(base::Bind(CreateResourceUsageReporter));
+ registry->AddInterface(base::Bind(ProfileImportHandler::Create));
#endif
registry->AddInterface(base::Bind(&CreateImageDecoder));
registry->AddInterface(

Powered by Google App Engine
This is Rietveld 408576698