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

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

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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/core/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{"OfflineBookmarks",
14 "OfflineBookmarks", base::FEATURE_DISABLED_BY_DEFAULT 14 base::FEATURE_DISABLED_BY_DEFAULT};
15 };
16 15
17 const base::Feature kOffliningRecentPagesFeature { 16 const base::Feature kOffliningRecentPagesFeature{
18 "OfflineRecentPages", base::FEATURE_DISABLED_BY_DEFAULT 17 "OfflineRecentPages", base::FEATURE_DISABLED_BY_DEFAULT};
19 };
20 18
21 const base::Feature kOfflinePagesCTFeature { 19 const base::Feature kOfflinePagesCTFeature{"OfflinePagesCT",
22 "OfflinePagesCT", base::FEATURE_ENABLED_BY_DEFAULT 20 base::FEATURE_ENABLED_BY_DEFAULT};
23 };
24 21
25 const base::Feature kOfflinePagesSharingFeature{ 22 const base::Feature kOfflinePagesSharingFeature{
26 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT}; 23 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT};
27 24
28 const base::Feature kOfflinePagesSvelteConcurrentLoadingFeature{ 25 const base::Feature kOfflinePagesSvelteConcurrentLoadingFeature{
29 "OfflinePagesSvelteConcurrentLoading", base::FEATURE_DISABLED_BY_DEFAULT}; 26 "OfflinePagesSvelteConcurrentLoading", base::FEATURE_DISABLED_BY_DEFAULT};
30 27
31 const base::Feature kBackgroundLoaderForDownloadsFeature{ 28 const base::Feature kBackgroundLoaderForDownloadsFeature{
32 "BackgroundLoadingForDownloads", base::FEATURE_ENABLED_BY_DEFAULT}; 29 "BackgroundLoadingForDownloads", base::FEATURE_ENABLED_BY_DEFAULT};
33 30
34 const base::Feature kOfflinePagesAsyncDownloadFeature { 31 const base::Feature kOfflinePagesAsyncDownloadFeature{
35 "OfflinePagesAsyncDownload", base::FEATURE_DISABLED_BY_DEFAULT 32 "OfflinePagesAsyncDownload", base::FEATURE_DISABLED_BY_DEFAULT};
36 };
37 33
38 const base::Feature kNewBackgroundLoaderFeature { 34 const base::Feature kNewBackgroundLoaderFeature {
39 "BackgroundLoader", base::FEATURE_DISABLED_BY_DEFAULT 35 "BackgroundLoader", base::FEATURE_DISABLED_BY_DEFAULT
40 }; 36 };
41 37
42 bool IsOfflineBookmarksEnabled() { 38 bool IsOfflineBookmarksEnabled() {
43 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature); 39 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature);
44 } 40 }
45 41
46 bool IsOffliningRecentPagesEnabled() { 42 bool IsOffliningRecentPagesEnabled() {
47 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature); 43 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature);
48 } 44 }
49 45
50 bool IsOfflinePagesSvelteConcurrentLoadingEnabled() { 46 bool IsOfflinePagesSvelteConcurrentLoadingEnabled() {
51 return base::FeatureList::IsEnabled( 47 return base::FeatureList::IsEnabled(
52 kOfflinePagesSvelteConcurrentLoadingFeature); 48 kOfflinePagesSvelteConcurrentLoadingFeature);
53 } 49 }
54 50
55 bool IsOfflinePagesCTEnabled() { 51 bool IsOfflinePagesCTEnabled() {
56 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature); 52 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
57 } 53 }
58 54
59 bool IsOfflinePagesSharingEnabled() { 55 bool IsOfflinePagesSharingEnabled() {
60 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature); 56 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
61 } 57 }
62 58
63 bool IsBackgroundLoaderForDownloadsEnabled() { 59 bool IsBackgroundLoaderForDownloadsEnabled() {
64 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature); 60 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature);
65 } 61 }
66 62
67 bool IsOfflinePagesAsyncDownloadEnabled() { 63 bool IsOfflinePagesAsyncDownloadEnabled() {
68 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature); 64 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature);
69 } 65 }
70 66
71 bool ShouldUseNewBackgroundLoader() { 67 bool ShouldUseNewBackgroundLoader() {
72 return base::FeatureList::IsEnabled(kNewBackgroundLoaderFeature); 68 return base::FeatureList::IsEnabled(kNewBackgroundLoaderFeature);
73 } 69 }
74 70
75 } // namespace offline_pages 71 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/core/offline_page_feature.h ('k') | components/offline_pages/core/offline_page_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698