Commit 80d341af authored by jorgelo@chromium.org's avatar jorgelo@chromium.org

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

BUG=93109
TEST=Launch Chromium, log in, open the NTP.


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114137 0039d316-1c4b-4281-b951-d872f2087c98
parent 69ae835f
...@@ -594,6 +594,7 @@ void CrxUpdateService::ParseManifest(const std::string& xml) { ...@@ -594,6 +594,7 @@ void CrxUpdateService::ParseManifest(const std::string& xml) {
UtilityProcessHost* host = UtilityProcessHost* host =
new UtilityProcessHost(new ManifestParserBridge(this), new UtilityProcessHost(new ManifestParserBridge(this),
BrowserThread::UI); BrowserThread::UI);
host->set_use_linux_zygote(true);
host->Send(new ChromeUtilityMsg_ParseUpdateManifest(xml)); host->Send(new ChromeUtilityMsg_ParseUpdateManifest(xml));
} }
} }
......
...@@ -60,5 +60,6 @@ void ImageDecoder::DecodeImageInSandbox( ...@@ -60,5 +60,6 @@ void ImageDecoder::DecodeImageInSandbox(
UtilityProcessHost* utility_process_host = UtilityProcessHost* utility_process_host =
new UtilityProcessHost(this, new UtilityProcessHost(this,
target_thread_id_); target_thread_id_);
utility_process_host->set_use_linux_zygote(true);
utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data)); utility_process_host->Send(new ChromeUtilityMsg_DecodeImage(image_data));
} }
...@@ -194,6 +194,7 @@ class WebResourceService::UnpackerClient : public UtilityProcessHost::Client { ...@@ -194,6 +194,7 @@ class WebResourceService::UnpackerClient : public UtilityProcessHost::Client {
void StartProcessOnIOThread(BrowserThread::ID thread_id) { void StartProcessOnIOThread(BrowserThread::ID thread_id) {
UtilityProcessHost* host = new UtilityProcessHost(this, thread_id); UtilityProcessHost* host = new UtilityProcessHost(this, thread_id);
host->set_use_linux_zygote(true);
// TODO(mrc): get proper file path when we start using web resources // TODO(mrc): get proper file path when we start using web resources
// that need to be unpacked. // that need to be unpacked.
host->Send(new ChromeUtilityMsg_UnpackWebResource(json_data_)); host->Send(new ChromeUtilityMsg_UnpackWebResource(json_data_));
......
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