diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-03 17:02:07 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-02-03 17:02:07 +0000 |
commit | c4f883a6d4a7e2d31ea641f36f7f5150a2cbc349 (patch) | |
tree | 946d49876311e62e24e56605f803ac9cc5b6e54d /chrome/browser/extensions/webstore_install_helper.cc | |
parent | 803f91036d5674629f9e64205cacd31fb0f7d5c2 (diff) | |
download | chromium_src-c4f883a6d4a7e2d31ea641f36f7f5150a2cbc349.zip chromium_src-c4f883a6d4a7e2d31ea641f36f7f5150a2cbc349.tar.gz chromium_src-c4f883a6d4a7e2d31ea641f36f7f5150a2cbc349.tar.bz2 |
Create an API around UtilityProcessHost and use that from chrome.
BUG=98716
Review URL: https://chromiumcodereview.appspot.com/9317074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120342 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/webstore_install_helper.cc')
-rw-r--r-- | chrome/browser/extensions/webstore_install_helper.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/webstore_install_helper.cc b/chrome/browser/extensions/webstore_install_helper.cc index fbc67d3..979173c 100644 --- a/chrome/browser/extensions/webstore_install_helper.cc +++ b/chrome/browser/extensions/webstore_install_helper.cc @@ -10,11 +10,13 @@ #include "base/values.h" #include "chrome/common/chrome_utility_messages.h" #include "content/public/browser/browser_thread.h" +#include "content/public/browser/utility_process_host.h" #include "content/public/common/url_fetcher.h" #include "net/url_request/url_request_context_getter.h" #include "net/url_request/url_request_status.h" using content::BrowserThread; +using content::UtilityProcessHost; namespace { @@ -67,8 +69,8 @@ void WebstoreInstallHelper::Start() { void WebstoreInstallHelper::StartWorkOnIOThread() { CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); utility_host_ = - (new UtilityProcessHost(this, BrowserThread::IO))->AsWeakPtr(); - utility_host_->set_use_linux_zygote(true); + UtilityProcessHost::Create(this, BrowserThread::IO)->AsWeakPtr(); + utility_host_->EnableZygote(); utility_host_->StartBatchMode(); if (!icon_base64_data_.empty()) |