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

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: Put @VisibleForTesting in the right place. 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..114c0dbe9156120c27f55bed06371210918a345f 100644
--- a/components/offline_pages/offline_page_feature.cc
+++ b/components/offline_pages/offline_page_feature.cc
@@ -29,6 +29,10 @@ const base::Feature kOffliningRecentPagesFeature {
"offline-recent-pages", base::FEATURE_DISABLED_BY_DEFAULT
};
+const base::Feature kOfflinePagesBackgroundLoadingFeature {
+ "offline-pages-background-loading", base::FEATURE_DISABLED_BY_DEFAULT
+};
+
FeatureMode GetOfflinePageFeatureMode() {
// Note: It's important to query the field trial state first, to ensure that
// UMA reports the correct group.
@@ -83,4 +87,9 @@ bool IsOffliningRecentPagesEnabled() {
IsOfflinePagesEnabled();
}
+bool IsOfflinePagesBackgroundLoadingEnabled() {
+ return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature)
+ && IsOfflinePagesEnabled();
+}
+
} // namespace offline_pages
« no previous file with comments | « components/offline_pages/offline_page_feature.h ('k') | components/offline_pages/offline_page_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698