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

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

Issue 9150016: Move creation and ownership of ResourceDispatcherHost and PluginService to content. This gives a ... (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/web_resource/web_resource_service.h
===================================================================
--- chrome/browser/web_resource/web_resource_service.h (revision 116798)
+++ chrome/browser/web_resource/web_resource_service.h (working copy)
@@ -38,6 +38,10 @@
// Then begin updating resources.
void StartAfterDelay();
+ void set_use_utility_process_for_testing(bool value) {
+ use_utility_process_ = value;
+ }
+
protected:
virtual ~WebResourceService();
@@ -89,6 +93,9 @@
// different for different builds of Chrome.
int cache_update_delay_ms_;
+ // Used by unittests to skip the utility process.
+ bool use_utility_process_;
+
DISALLOW_COPY_AND_ASSIGN(WebResourceService);
};

Powered by Google App Engine
This is Rietveld 408576698