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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2832633002: Add PDF compositor service (Closed)
Patch Set: rebase Created 3 years, 8 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 fdfb54c56eba9160757c38517779f1cdc369ab61..24735661f30ee379f4737675513b7693f1fac9a5 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -379,6 +379,10 @@
#include "chrome/browser/media/cast_remoting_connector.h"
#endif
+#if BUILDFLAG(ENABLE_PRINTING)
+#include "components/printing/service/public/interfaces/pdf_compositor.mojom.h"
+#endif
+
#if BUILDFLAG(ENABLE_WAYLAND_SERVER)
#include "chrome/browser/chrome_browser_main_extra_parts_exo.h"
#endif
@@ -3286,6 +3290,12 @@ void ChromeContentBrowserClient::RegisterOutOfProcessServices(
services->insert(std::make_pair("media",
base::ASCIIToUTF16("Media Service")));
#endif
+
+#if BUILDFLAG(ENABLE_PRINTING)
+ services->insert(
+ std::make_pair(printing::mojom::kServiceName,
+ base::ASCIIToUTF16("PDF Compositor Service")));
+#endif
}
std::unique_ptr<base::Value>
@@ -3321,6 +3331,9 @@ ChromeContentBrowserClient::GetExtraServiceManifests() {
{nacl::kNaClBrokerServiceName, IDR_NACL_BROKER_MANIFEST},
#endif // defined(OS_WIN)
#endif // !defined(DISABLE_NACL)
+#if BUILDFLAG(ENABLE_PRINTING)
+ {printing::mojom::kServiceName, IDR_PDF_COMPOSITOR_MANIFEST},
Lei Zhang 2017/05/04 01:31:09 nit: The indentation on line 3331 looks off. It an
Wei Li 2017/05/04 18:18:28 I noticed this too. Our formatting script made thi
+#endif // BUILDFLAG(ENABLE_PRINTING)
Lei Zhang 2017/05/04 01:31:10 nit: No need for comment, since this isn't nested
Wei Li 2017/05/04 18:18:28 Done.
});
}

Powered by Google App Engine
This is Rietveld 408576698