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

Unified Diff: components/offline_pages/offline_page_feature.cc

Issue 2068393002: Flag for Offline Page Sharing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge flag check statement Created 4 years, 5 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 d522bc9658639475d71ae50fa7352eb223f3c2f7..9b1773a824d2e98a258dff9fa219ade9d9da73b4 100644
--- a/components/offline_pages/offline_page_feature.cc
+++ b/components/offline_pages/offline_page_feature.cc
@@ -22,13 +22,17 @@ const base::Feature kOfflinePagesBackgroundLoadingFeature {
"OfflinePagesBackgroundLoading", base::FEATURE_DISABLED_BY_DEFAULT
};
+const base::Feature kOfflinePagesSharingFeature{
+ "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT};
+
const base::Feature kOfflinePagesCTFeature {
"OfflinePagesCT", base::FEATURE_DISABLED_BY_DEFAULT
};
bool IsOfflinePagesEnabled() {
return IsOfflineBookmarksEnabled() || IsOffliningRecentPagesEnabled() ||
- IsOfflinePagesBackgroundLoadingEnabled() || IsOfflinePagesCTEnabled();
+ IsOfflinePagesBackgroundLoadingEnabled() || IsOfflinePagesCTEnabled() ||
fgorski 2016/07/21 17:08:05 can you run git cl format?
Vivian 2016/07/21 17:16:21 Done.
+ IsOfflinePagesSharingEnabled();
}
bool IsOfflineBookmarksEnabled() {
@@ -43,6 +47,10 @@ bool IsOfflinePagesBackgroundLoadingEnabled() {
return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature);
}
+bool IsOfflinePagesSharingEnabled() {
+ return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
+}
+
bool IsOfflinePagesCTEnabled() {
return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
}

Powered by Google App Engine
This is Rietveld 408576698