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

Unified Diff: chrome/browser/web_resource/web_resource_service.cc

Issue 339033: Simple fix so the utility process respects single process mode. (Closed)
Patch Set: Created 11 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_resource/web_resource_service.cc
diff --git a/chrome/browser/web_resource/web_resource_service.cc b/chrome/browser/web_resource/web_resource_service.cc
index 7e56c9f38f27496267cccf19eb7eafad5d01ba56..07db52377a32f9af8a061f483ffd60ac7a94b328 100644
--- a/chrome/browser/web_resource/web_resource_service.cc
+++ b/chrome/browser/web_resource/web_resource_service.cc
@@ -106,7 +106,8 @@ class WebResourceService::UnpackerClient
// If we don't have a resource_dispatcher_host_, assume we're in
// a test and run the unpacker directly in-process.
bool use_utility_process =
- web_resource_service_->resource_dispatcher_host_ != NULL;
+ web_resource_service_->resource_dispatcher_host_ != NULL &&
+ !CommandLine::ForCurrentProcess()->HasSwitch(switches::kSingleProcess);
#if defined(OS_POSIX)
// TODO(port): Don't use a utility process on linux (crbug.com/22703) or
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698