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

Unified Diff: chrome/browser/importer/external_process_importer_client.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
Index: chrome/browser/importer/external_process_importer_client.cc
===================================================================
--- chrome/browser/importer/external_process_importer_client.cc (revision 120256)
+++ chrome/browser/importer/external_process_importer_client.cc (working copy)
@@ -16,10 +16,12 @@
#include "chrome/browser/search_engines/template_url_service.h"
#include "content/browser/renderer_host/resource_dispatcher_host.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/browser/utility_process_host.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
using content::BrowserThread;
+using content::UtilityProcessHost;
ExternalProcessImporterClient::ExternalProcessImporterClient(
ExternalProcessImporterHost* importer_host,
@@ -75,15 +77,15 @@
void ExternalProcessImporterClient::StartProcessOnIOThread(
BrowserThread::ID thread_id) {
utility_process_host_ =
- (new UtilityProcessHost(this, thread_id))->AsWeakPtr();
- utility_process_host_->set_no_sandbox(true);
+ UtilityProcessHost::Create(this, thread_id)->AsWeakPtr();
+ utility_process_host_->DisableSandbox();
#if defined(OS_MACOSX)
base::environment_vector env;
std::string dylib_path = GetFirefoxDylibPath().value();
if (!dylib_path.empty())
env.push_back(std::make_pair("DYLD_FALLBACK_LIBRARY_PATH", dylib_path));
- utility_process_host_->set_env(env);
+ utility_process_host_->SetEnv(env);
#endif
// Dictionary of all localized strings that could be needed by the importer
« no previous file with comments | « chrome/browser/importer/external_process_importer_client.h ('k') | chrome/browser/web_resource/web_resource_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698