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

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: Edit according to Jian's comments and formatting 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
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..7443e72ec54833b29528a4e640d7ff1f38546106 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 kOfflinePagesSharingFeature{
+ "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT};
+
bool IsOfflinePagesEnabled() {
return IsOfflineBookmarksEnabled() || IsOffliningRecentPagesEnabled() ||
- IsOfflinePagesBackgroundLoadingEnabled();
+ IsOfflinePagesBackgroundLoadingEnabled() ||
+ IsOfflinePagesSharingEnabled();
fgorski 2016/06/16 15:09:39 this part bothers me a little bit. I mean: if the
Vivian 2016/06/16 17:02:58 I agree with Filip. Even if offline pages is not e
jianli 2016/06/16 22:27:44 If we enable only sharing feature but not any othe
}
bool IsOfflineBookmarksEnabled() {
@@ -39,4 +43,8 @@ bool IsOfflinePagesBackgroundLoadingEnabled() {
return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature);
}
+bool IsOfflinePagesSharingEnabled() {
+ return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
+}
+
} // namespace offline_pages

Powered by Google App Engine
This is Rietveld 408576698