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

Side by Side Diff: components/offline_pages/offline_page_feature.cc

Issue 2273873002: [Offline Pages] Enable CT features by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_ENABLED_BY_DEFAULT
27 }; 27 };
28 28
29 const base::Feature kOfflinePagesSharingFeature{ 29 const base::Feature kOfflinePagesSharingFeature{
30 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT}; 30 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT};
31 31
32 const base::Feature kBackgroundLoaderForDownloadsFeature{ 32 const base::Feature kBackgroundLoaderForDownloadsFeature{
33 "BackgroundLoadingForDownloads", base::FEATURE_ENABLED_BY_DEFAULT}; 33 "BackgroundLoadingForDownloads", base::FEATURE_ENABLED_BY_DEFAULT};
34 34
35 bool IsOfflinePagesEnabled() { 35 bool IsOfflinePagesEnabled() {
36 return IsOfflineBookmarksEnabled() || IsOffliningRecentPagesEnabled() || 36 return IsOfflineBookmarksEnabled() || IsOffliningRecentPagesEnabled() ||
(...skipping 19 matching lines...) Expand all
56 56
57 bool IsOfflinePagesSharingEnabled() { 57 bool IsOfflinePagesSharingEnabled() {
58 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature); 58 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
59 } 59 }
60 60
61 bool IsBackgroundLoaderForDownloadsEnabled() { 61 bool IsBackgroundLoaderForDownloadsEnabled() {
62 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature); 62 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature);
63 } 63 }
64 64
65 } // namespace offline_pages 65 } // namespace offline_pages
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698