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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 2477283002: Convert printing IPCs to Mojo
Patch Set: Fix more Windows compile errors Created 3 years, 11 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/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 f95ceadf3fa977e555000d5a31af82ab7574b0df..12a46b65f25de09be2bcc7ec055ce3f31e5af23e 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -118,11 +118,6 @@ ChromeContentUtilityClient::ChromeContentUtilityClient()
handlers_.push_back(new image_writer::ImageWriterHandler());
#endif
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW) || \
- (BUILDFLAG(ENABLE_BASIC_PRINTING) && defined(OS_WIN))
- handlers_.push_back(new printing::PrintingHandler());
-#endif
-
#if defined(OS_WIN)
handlers_.push_back(new IPCShellHandler());
#endif
@@ -211,6 +206,10 @@ void ChromeContentUtilityClient::ExposeInterfacesToBrowser(
#if defined(OS_WIN)
registry->AddInterface(base::Bind(&ShellHandlerImpl::Create));
#endif
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW) || \
+ (BUILDFLAG(ENABLE_BASIC_PRINTING) && defined(OS_WIN))
+ registry->AddInterface(base::Bind(&printing::PrintingHandler::Create));
+#endif
}
void ChromeContentUtilityClient::RegisterServices(StaticServiceMap* services) {

Powered by Google App Engine
This is Rietveld 408576698