summaryrefslogtreecommitdiffstats
path: root/chrome/app
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 22:06:41 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-13 22:06:41 +0000
commitf30a566d7fcc4c56004f40e9db160906bdf9ac8c (patch)
treec0d6b4c308cf7853205717a63b27ea8ce276a93b /chrome/app
parent6e5e54e39d8e542077acdafe8cf9033b1ca9acce (diff)
downloadchromium_src-f30a566d7fcc4c56004f40e9db160906bdf9ac8c.zip
chromium_src-f30a566d7fcc4c56004f40e9db160906bdf9ac8c.tar.gz
chromium_src-f30a566d7fcc4c56004f40e9db160906bdf9ac8c.tar.bz2
Add an "extension" process type, which mostly gets treated as a renderer everywhere.
BUG=27163 Review URL: http://codereview.chromium.org/384108 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/app')
-rw-r--r--chrome/app/chrome_dll_main.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index e16df52..8d62ddb 100644
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -545,7 +545,8 @@ int ChromeMain(int argc, char** argv) {
#if defined (OS_MACOSX)
// On OS X the renderer sandbox needs to be initialized later in the startup
// sequence in RendererMainPlatformDelegate::PlatformInitialize().
- if (process_type != switches::kRendererProcess)
+ if (process_type != switches::kRendererProcess &&
+ process_type != switches::kExtensionProcess)
sandbox_wrapper.InitializeSandbox(parsed_command_line, process_type);
#endif // OS_MACOSX
@@ -558,6 +559,10 @@ int ChromeMain(int argc, char** argv) {
int rv = -1;
if (process_type == switches::kRendererProcess) {
rv = RendererMain(main_params);
+ } else if (process_type == switches::kExtensionProcess) {
+ // An extension process is just a renderer process. We use a different
+ // command line argument to differentiate crash reports.
+ rv = RendererMain(main_params);
} else if (process_type == switches::kPluginProcess) {
rv = PluginMain(main_params);
} else if (process_type == switches::kUtilityProcess) {