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

Unified Diff: components/offline_pages/offline_page_feature.cc

Issue 2070153002: Add an experimental flag for offlining. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove copy pasted desription. Created 4 years, 6 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 | « components/offline_pages/offline_page_feature.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 159ea9a862f6db89d208778a5a52178b0940b372..d522bc9658639475d71ae50fa7352eb223f3c2f7 100644
--- a/components/offline_pages/offline_page_feature.cc
+++ b/components/offline_pages/offline_page_feature.cc
@@ -22,9 +22,13 @@ const base::Feature kOfflinePagesBackgroundLoadingFeature {
"OfflinePagesBackgroundLoading", base::FEATURE_DISABLED_BY_DEFAULT
};
+const base::Feature kOfflinePagesCTFeature {
+ "OfflinePagesCT", base::FEATURE_DISABLED_BY_DEFAULT
+};
+
bool IsOfflinePagesEnabled() {
return IsOfflineBookmarksEnabled() || IsOffliningRecentPagesEnabled() ||
- IsOfflinePagesBackgroundLoadingEnabled();
+ IsOfflinePagesBackgroundLoadingEnabled() || IsOfflinePagesCTEnabled();
}
bool IsOfflineBookmarksEnabled() {
@@ -39,4 +43,8 @@ bool IsOfflinePagesBackgroundLoadingEnabled() {
return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature);
}
+bool IsOfflinePagesCTEnabled() {
+ return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
+}
+
} // namespace offline_pages
« no previous file with comments | « components/offline_pages/offline_page_feature.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698