summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 21:10:28 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-04 21:10:28 +0000
commite01761e82ee46cd775c191939ec789ce76bfb5f7 (patch)
treed0f82e023c903da6d96dc5cdc19a34a321266801 /chrome/browser
parentec836d6aaac704827c7dab14ae6c19d49845597b (diff)
downloadchromium_src-e01761e82ee46cd775c191939ec789ce76bfb5f7.zip
chromium_src-e01761e82ee46cd775c191939ec789ce76bfb5f7.tar.gz
chromium_src-e01761e82ee46cd775c191939ec789ce76bfb5f7.tar.bz2
Use the zygote for extension page popup processes.
BUG=29377 Review URL: http://codereview.chromium.org/464041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/child_process_launcher.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/child_process_launcher.cc b/chrome/browser/child_process_launcher.cc
index 9b8cae9..956f836 100644
--- a/chrome/browser/child_process_launcher.cc
+++ b/chrome/browser/child_process_launcher.cc
@@ -105,9 +105,11 @@ class ChildProcessLauncher::Context
// case then.
bool is_renderer = cmd_line->GetSwitchValueASCII(switches::kProcessType) ==
switches::kRendererProcess;
+ bool is_extension = cmd_line->GetSwitchValueASCII(switches::kProcessType) ==
+ switches::kExtensionProcess;
bool is_plugin = cmd_line->GetSwitchValueASCII(switches::kProcessType) ==
switches::kPluginProcess;
- if (is_renderer &&
+ if ((is_renderer || is_extension) &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kRendererCmdPrefix)) {
zygote = true;