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 |