summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 13:56:39 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-25 13:56:39 +0000
commit2a61bc60abd2650022a843d47cf5bc78ce13e8d0 (patch)
tree4317bb715e1df45165995d1bfadafeffd0bbeb6c
parentb3a4ac13cc59d73e7edd229d31fb7f1d23a0a604 (diff)
downloadchromium_src-2a61bc60abd2650022a843d47cf5bc78ce13e8d0.zip
chromium_src-2a61bc60abd2650022a843d47cf5bc78ce13e8d0.tar.gz
chromium_src-2a61bc60abd2650022a843d47cf5bc78ce13e8d0.tar.bz2
Make utility process succeed in unpacking .crx file with
'experimental' in the permissions section of its manifest file, if --enable-experimental-extension-apis was provided to Chrome on the command line. BUG=36702 TEST=as per repro in bug 36702 Review URL: http://codereview.chromium.org/661013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40014 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/utility_process_host.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/utility_process_host.cc b/chrome/browser/utility_process_host.cc
index 3d3c317..1766b7e 100644
--- a/chrome/browser/utility_process_host.cc
+++ b/chrome/browser/utility_process_host.cc
@@ -86,6 +86,11 @@ bool UtilityProcessHost::StartProcess(const FilePath& exposed_dir) {
if (browser_command_line.HasSwitch(switches::kEnableExtensionApps))
cmd_line->AppendSwitch(switches::kEnableExtensionApps);
+ if (browser_command_line.HasSwitch(
+ switches::kEnableExperimentalExtensionApis)) {
+ cmd_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
+ }
+
#if defined(OS_POSIX)
// TODO(port): Sandbox this on Linux. Also, zygote this to work with
// Linux updating.