OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "components/offline_pages/offline_page_feature.h" | |
6 | |
7 #include <string> | |
8 | |
9 #include "base/feature_list.h" | |
10 | |
11 namespace offline_pages { | |
12 | |
13 const base::Feature kOfflineBookmarksFeature { | |
14 "OfflineBookmarks", base::FEATURE_DISABLED_BY_DEFAULT | |
15 }; | |
16 | |
17 const base::Feature kOffliningRecentPagesFeature { | |
18 "OfflineRecentPages", base::FEATURE_DISABLED_BY_DEFAULT | |
19 }; | |
20 | |
21 const base::Feature kOfflinePagesCTFeature { | |
22 "OfflinePagesCT", base::FEATURE_ENABLED_BY_DEFAULT | |
23 }; | |
24 | |
25 const base::Feature kOfflinePagesSharingFeature{ | |
26 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT}; | |
27 | |
28 const base::Feature kOfflinePagesSvelteConcurrentLoadingFeature{ | |
29 "OfflinePagesSvelteConcurrentLoading", base::FEATURE_DISABLED_BY_DEFAULT}; | |
30 | |
31 const base::Feature kBackgroundLoaderForDownloadsFeature{ | |
32 "BackgroundLoadingForDownloads", base::FEATURE_ENABLED_BY_DEFAULT}; | |
33 | |
34 const base::Feature kOfflinePagesAsyncDownloadFeature { | |
35 "OfflinePagesAsyncDownload", base::FEATURE_DISABLED_BY_DEFAULT | |
36 }; | |
37 | |
38 bool IsOfflineBookmarksEnabled() { | |
39 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature); | |
40 } | |
41 | |
42 bool IsOffliningRecentPagesEnabled() { | |
43 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature); | |
44 } | |
45 | |
46 bool IsOfflinePagesSvelteConcurrentLoadingEnabled() { | |
47 return base::FeatureList::IsEnabled( | |
48 kOfflinePagesSvelteConcurrentLoadingFeature); | |
49 } | |
50 | |
51 bool IsOfflinePagesCTEnabled() { | |
52 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature); | |
53 } | |
54 | |
55 bool IsOfflinePagesSharingEnabled() { | |
56 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature); | |
57 } | |
58 | |
59 bool IsBackgroundLoaderForDownloadsEnabled() { | |
60 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature); | |
61 } | |
62 | |
63 bool IsOfflinePagesAsyncDownloadEnabled() { | |
64 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature); | |
65 } | |
66 | |
67 } // namespace offline_pages | |
OLD | NEW |