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

Side by Side Diff: components/offline_pages/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
(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 const base::Feature kNewBackgroundLoaderFeature {
39 "BackgroundLoader", base::FEATURE_DISABLED_BY_DEFAULT
40 };
41
42 bool IsOfflineBookmarksEnabled() {
43 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature);
44 }
45
46 bool IsOffliningRecentPagesEnabled() {
47 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature);
48 }
49
50 bool IsOfflinePagesSvelteConcurrentLoadingEnabled() {
51 return base::FeatureList::IsEnabled(
52 kOfflinePagesSvelteConcurrentLoadingFeature);
53 }
54
55 bool IsOfflinePagesCTEnabled() {
56 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
57 }
58
59 bool IsOfflinePagesSharingEnabled() {
60 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
61 }
62
63 bool IsBackgroundLoaderForDownloadsEnabled() {
64 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature);
65 }
66
67 bool IsOfflinePagesAsyncDownloadEnabled() {
68 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature);
69 }
70
71 bool ShouldUseNewBackgroundLoader() {
72 return base::FeatureList::IsEnabled(kNewBackgroundLoaderFeature);
73 }
74
75 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_feature.h ('k') | components/offline_pages/offline_page_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698