Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1743)

Unified Diff: chrome/browser/extensions/webstore_install_helper.cc

Issue 9317074: Create an API around UtilityProcessHost and use that from chrome. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.h ('k') | chrome/browser/first_run/first_run_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/webstore_install_helper.cc
===================================================================
--- chrome/browser/extensions/webstore_install_helper.cc (revision 120256)
+++ chrome/browser/extensions/webstore_install_helper.cc (working copy)
@@ -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::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())
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.h ('k') | chrome/browser/first_run/first_run_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698