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

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: update 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/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 bool IsOfflineBookmarksEnabled() { 34 bool IsOfflineBookmarksEnabled() {
39 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature); 35 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature);
40 } 36 }
41 37
42 bool IsOffliningRecentPagesEnabled() { 38 bool IsOffliningRecentPagesEnabled() {
43 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature); 39 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature);
44 } 40 }
45 41
46 bool IsOfflinePagesSvelteConcurrentLoadingEnabled() { 42 bool IsOfflinePagesSvelteConcurrentLoadingEnabled() {
47 return base::FeatureList::IsEnabled( 43 return base::FeatureList::IsEnabled(
48 kOfflinePagesSvelteConcurrentLoadingFeature); 44 kOfflinePagesSvelteConcurrentLoadingFeature);
49 } 45 }
50 46
51 bool IsOfflinePagesCTEnabled() { 47 bool IsOfflinePagesCTEnabled() {
52 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature); 48 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
53 } 49 }
54 50
55 bool IsOfflinePagesSharingEnabled() { 51 bool IsOfflinePagesSharingEnabled() {
56 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature); 52 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
57 } 53 }
58 54
59 bool IsBackgroundLoaderForDownloadsEnabled() { 55 bool IsBackgroundLoaderForDownloadsEnabled() {
60 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature); 56 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature);
61 } 57 }
62 58
63 bool IsOfflinePagesAsyncDownloadEnabled() { 59 bool IsOfflinePagesAsyncDownloadEnabled() {
64 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature); 60 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature);
65 } 61 }
66 62
67 } // namespace offline_pages 63 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698