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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2832633002: Add PDF compositor service (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6936ca06824c398fc2ae2da91dfc0c5e983faba0..13bf33db8d82faf3d5d18af107dbaf83effb4834 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
@@ -3273,9 +3277,13 @@ void ChromeContentBrowserClient::RegisterInProcessServices(
void ChromeContentBrowserClient::RegisterOutOfProcessServices(
OutOfProcessServiceMap* services) {
-#if BUILDFLAG(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
- services->insert(std::make_pair("media",
- base::ASCIIToUTF16("Media Service")));
+#if defined(ENABLE_MOJO_MEDIA_IN_UTILITY_PROCESS)
+ services->emplace("media", base::ASCIIToUTF16("Media Service"));
+#endif
+
+#if BUILDFLAG(ENABLE_PRINTING)
+ services->emplace(printing::mojom::kServiceName,
+ base::ASCIIToUTF16("PDF Compositor Service"));
#endif
}
@@ -3312,6 +3320,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},
+#endif
});
}
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/utility/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698