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

Unified Diff: chrome/app/chrome_main.cc

Issue 6995095: Move UtilityProcessHost to content and move the message sending/dispatching to the clients. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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/app/chrome_main.cc
===================================================================
--- chrome/app/chrome_main.cc (revision 88480)
+++ chrome/app/chrome_main.cc (working copy)
@@ -35,6 +35,7 @@
#include "chrome/common/profiling.h"
#include "chrome/common/url_constants.h"
#include "chrome/renderer/chrome_content_renderer_client.h"
+#include "chrome/utility/chrome_content_utility_client.h"
#include "content/browser/renderer_host/render_process_host.h"
#include "content/common/content_client.h"
#include "content/common/content_counters.h"
@@ -91,9 +92,11 @@
#include "chrome/app/breakpad_linux.h"
#endif
-#if !defined(NACL_WIN64) // We don't build the renderer code on win nacl64.
+#if !defined(NACL_WIN64) // We don't build the this code on win nacl64.
base::LazyInstance<chrome::ChromeContentRendererClient>
g_chrome_content_renderer_client(base::LINKER_INITIALIZED);
+base::LazyInstance<chrome::ChromeContentUtilityClient>
+ g_chrome_content_utility_client(base::LINKER_INITIALIZED);
#endif // NACL_WIN64
base::LazyInstance<chrome::ChromeContentPluginClient>
@@ -241,6 +244,11 @@
} else if (process_type == switches::kRendererProcess ||
process_type == switches::kExtensionProcess) {
InitializeChromeContentRendererClient();
+ } else if (process_type == switches::kUtilityProcess) {
+#if !defined(NACL_WIN64) // We don't build this code on win nacl64.
+ content::GetContentClient()->set_utility(
+ &g_chrome_content_utility_client.Get());
+#endif
}
}

Powered by Google App Engine
This is Rietveld 408576698