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

Side by Side 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: Resolve merge conflict 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/offline_pages/offline_page_feature.h" 5 #include "components/offline_pages/offline_page_feature.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/feature_list.h" 9 #include "base/feature_list.h"
10 10
11 namespace offline_pages { 11 namespace offline_pages {
12 12
13 const base::Feature kOfflineBookmarksFeature { 13 const base::Feature kOfflineBookmarksFeature {
14 "OfflineBookmarks", base::FEATURE_DISABLED_BY_DEFAULT 14 "OfflineBookmarks", base::FEATURE_DISABLED_BY_DEFAULT
15 }; 15 };
16 16
17 const base::Feature kOffliningRecentPagesFeature { 17 const base::Feature kOffliningRecentPagesFeature {
18 "OfflineRecentPages", base::FEATURE_DISABLED_BY_DEFAULT 18 "OfflineRecentPages", base::FEATURE_DISABLED_BY_DEFAULT
19 }; 19 };
20 20
21 const base::Feature kOfflinePagesBackgroundLoadingFeature { 21 const base::Feature kOfflinePagesBackgroundLoadingFeature {
22 "OfflinePagesBackgroundLoading", base::FEATURE_DISABLED_BY_DEFAULT 22 "OfflinePagesBackgroundLoading", base::FEATURE_DISABLED_BY_DEFAULT
23 }; 23 };
24 24
25 const base::Feature kOfflinePagesCTFeature { 25 const base::Feature kOfflinePagesCTFeature {
26 "OfflinePagesCT", base::FEATURE_DISABLED_BY_DEFAULT 26 "OfflinePagesCT", base::FEATURE_DISABLED_BY_DEFAULT
27 }; 27 };
28 28
29 const base::Feature kOfflinePagesSharingFeature{
30 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT};
31
29 bool IsOfflinePagesEnabled() { 32 bool IsOfflinePagesEnabled() {
30 return IsOfflineBookmarksEnabled() || IsOffliningRecentPagesEnabled() || 33 return IsOfflineBookmarksEnabled() || IsOffliningRecentPagesEnabled() ||
31 IsOfflinePagesBackgroundLoadingEnabled() || IsOfflinePagesCTEnabled(); 34 IsOfflinePagesBackgroundLoadingEnabled() ||
35 IsOfflinePagesCTEnabled() || IsOfflinePagesSharingEnabled();
32 } 36 }
33 37
34 bool IsOfflineBookmarksEnabled() { 38 bool IsOfflineBookmarksEnabled() {
35 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature); 39 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature);
36 } 40 }
37 41
38 bool IsOffliningRecentPagesEnabled() { 42 bool IsOffliningRecentPagesEnabled() {
39 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature); 43 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature);
40 } 44 }
41 45
42 bool IsOfflinePagesBackgroundLoadingEnabled() { 46 bool IsOfflinePagesBackgroundLoadingEnabled() {
43 return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature); 47 return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature);
44 } 48 }
45 49
46 bool IsOfflinePagesCTEnabled() { 50 bool IsOfflinePagesCTEnabled() {
47 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature); 51 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
48 } 52 }
49 53
54 bool IsOfflinePagesSharingEnabled() {
55 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
56 }
57
50 } // namespace offline_pages 58 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_feature.h ('k') | components/offline_pages/offline_page_model_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698