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

Unified Diff: components/offline_pages/offline_page_feature.cc

Issue 1772233003: Flag for Background Loading of Offline Pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust line spacing Created 4 years, 9 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: components/offline_pages/offline_page_feature.cc
diff --git a/components/offline_pages/offline_page_feature.cc b/components/offline_pages/offline_page_feature.cc
index ab00925cf73069a62c29a4fdd30c6057a5374372..c00d24985f05ac0a6e8e5a997c51245594a899a0 100644
--- a/components/offline_pages/offline_page_feature.cc
+++ b/components/offline_pages/offline_page_feature.cc
@@ -83,4 +83,9 @@ bool IsOffliningRecentPagesEnabled() {
IsOfflinePagesEnabled();
}
+bool IsOfflinePagesBackgroundLoadingEnabled() {
+ return (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableOfflinePagesBackgroundLoading));
+}
+
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698