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

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

Issue 2480753003: Use a new flag to control showing "DOWNLOAD PAGE LATER" in error pages (Closed)
Patch Set: Update histogram for about unittest Created 4 years, 1 month 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
(...skipping 14 matching lines...) Expand all
25 const base::Feature kOfflinePagesCTFeature { 25 const base::Feature kOfflinePagesCTFeature {
26 "OfflinePagesCT", base::FEATURE_ENABLED_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 const base::Feature kOfflinePagesAsyncDownloadFeature {
36 "OfflinePagesAsyncDownload", base::FEATURE_DISABLED_BY_DEFAULT
37 };
38
35 bool IsOfflineBookmarksEnabled() { 39 bool IsOfflineBookmarksEnabled() {
36 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature); 40 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature);
37 } 41 }
38 42
39 bool IsOffliningRecentPagesEnabled() { 43 bool IsOffliningRecentPagesEnabled() {
40 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature); 44 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature);
41 } 45 }
42 46
43 bool IsOfflinePagesBackgroundLoadingEnabled() { 47 bool IsOfflinePagesBackgroundLoadingEnabled() {
44 return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature); 48 return base::FeatureList::IsEnabled(kOfflinePagesBackgroundLoadingFeature);
45 } 49 }
46 50
47 bool IsOfflinePagesCTEnabled() { 51 bool IsOfflinePagesCTEnabled() {
48 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature); 52 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
49 } 53 }
50 54
51 bool IsOfflinePagesSharingEnabled() { 55 bool IsOfflinePagesSharingEnabled() {
52 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature); 56 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
53 } 57 }
54 58
55 bool IsBackgroundLoaderForDownloadsEnabled() { 59 bool IsBackgroundLoaderForDownloadsEnabled() {
56 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature); 60 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature);
57 } 61 }
58 62
63 bool IsOfflinePagesAsyncDownloadEnabled() {
64 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature);
65 }
66
59 } // namespace offline_pages 67 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_feature.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698