Commit 3dd18d02 authored by jorgelo@chromium.org's avatar jorgelo@chromium.org

Convert calls to the utility process in extension code to use the zygote on Linux.

Exclude extension unpacking since it accesses the FS.

BUG=93109
TEST=Install an extension from the Web Store.


Review URL: http://codereview.chromium.org/8921023

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114248 0039d316-1c4b-4281-b951-d872f2087c98
parent 54af8370
...@@ -212,6 +212,7 @@ class SafeManifestJSONParser : public UtilityProcessHost::Client { ...@@ -212,6 +212,7 @@ class SafeManifestJSONParser : public UtilityProcessHost::Client {
void StartWorkOnIOThread() { void StartWorkOnIOThread() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
utility_host_ = new UtilityProcessHost(this, BrowserThread::IO); utility_host_ = new UtilityProcessHost(this, BrowserThread::IO);
utility_host_->set_use_linux_zygote(true);
utility_host_->Send(new ChromeUtilityMsg_ParseJSON(manifest_)); utility_host_->Send(new ChromeUtilityMsg_ParseJSON(manifest_));
} }
......
...@@ -650,6 +650,7 @@ class SafeManifestParser : public UtilityProcessHost::Client { ...@@ -650,6 +650,7 @@ class SafeManifestParser : public UtilityProcessHost::Client {
if (use_utility_process) { if (use_utility_process) {
UtilityProcessHost* host = new UtilityProcessHost( UtilityProcessHost* host = new UtilityProcessHost(
this, BrowserThread::UI); this, BrowserThread::UI);
host->set_use_linux_zygote(true);
host->Send(new ChromeUtilityMsg_ParseUpdateManifest(xml_)); host->Send(new ChromeUtilityMsg_ParseUpdateManifest(xml_));
} else { } else {
UpdateManifest manifest; UpdateManifest manifest;
......
...@@ -73,6 +73,7 @@ class SafeWebstoreResponseParser : public UtilityProcessHost::Client { ...@@ -73,6 +73,7 @@ class SafeWebstoreResponseParser : public UtilityProcessHost::Client {
void StartWorkOnIOThread() { void StartWorkOnIOThread() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
utility_host_ = new UtilityProcessHost(this, BrowserThread::IO); utility_host_ = new UtilityProcessHost(this, BrowserThread::IO);
utility_host_->set_use_linux_zygote(true);
utility_host_->Send(new ChromeUtilityMsg_ParseJSON(webstore_data_)); utility_host_->Send(new ChromeUtilityMsg_ParseJSON(webstore_data_));
} }
......
...@@ -68,6 +68,7 @@ void WebstoreInstallHelper::Start() { ...@@ -68,6 +68,7 @@ void WebstoreInstallHelper::Start() {
void WebstoreInstallHelper::StartWorkOnIOThread() { void WebstoreInstallHelper::StartWorkOnIOThread() {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
utility_host_ = new UtilityProcessHost(this, BrowserThread::IO); utility_host_ = new UtilityProcessHost(this, BrowserThread::IO);
utility_host_->set_use_linux_zygote(true);
utility_host_->StartBatchMode(); utility_host_->StartBatchMode();
if (!icon_base64_data_.empty()) if (!icon_base64_data_.empty())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment