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

Unified Diff: shell/context.cc

Issue 1354623002: Force offline by default for warm benchmarks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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 | « shell/application_manager/network_fetcher.cc ('k') | shell/switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/context.cc
diff --git a/shell/context.cc b/shell/context.cc
index 2e9513064dc7dba71e2b9a3fd6ea179e85561c4a..5e43504e6de07c9ae1ad2952a5b350bc6ddac4a2 100644
--- a/shell/context.cc
+++ b/shell/context.cc
@@ -66,6 +66,9 @@ ApplicationManager::Options MakeApplicationManagerOptions() {
ApplicationManager::Options options;
options.disable_cache = base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableCache);
+ options.force_offline_by_default =
+ base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kForceOfflineByDefault);
return options;
}
« no previous file with comments | « shell/application_manager/network_fetcher.cc ('k') | shell/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698