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

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

Issue 2483463002: [Offline Pages] Feature flag to allow concurrent background loading on svelte (Closed)
Patch Set: Merge 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
11 namespace offline_pages { 11 namespace offline_pages {
12 12
13 const base::Feature kOfflineBookmarksFeature { 13 const base::Feature kOfflineBookmarksFeature {
14 "OfflineBookmarks", base::FEATURE_DISABLED_BY_DEFAULT 14 "OfflineBookmarks", base::FEATURE_DISABLED_BY_DEFAULT
15 }; 15 };
16 16
17 const base::Feature kOffliningRecentPagesFeature { 17 const base::Feature kOffliningRecentPagesFeature {
18 "OfflineRecentPages", base::FEATURE_DISABLED_BY_DEFAULT 18 "OfflineRecentPages", base::FEATURE_DISABLED_BY_DEFAULT
19 }; 19 };
20 20
21 const base::Feature kOfflinePagesCTFeature { 21 const base::Feature kOfflinePagesCTFeature {
22 "OfflinePagesCT", base::FEATURE_ENABLED_BY_DEFAULT 22 "OfflinePagesCT", base::FEATURE_ENABLED_BY_DEFAULT
23 }; 23 };
24 24
25 const base::Feature kOfflinePagesSharingFeature{ 25 const base::Feature kOfflinePagesSharingFeature{
26 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT}; 26 "OfflinePagesSharing", base::FEATURE_DISABLED_BY_DEFAULT};
27 27
28 const base::Feature kOfflinePagesSvelteConcurrentLoadingFeature{
29 "OfflinePagesSvelteConcurrentLoading", base::FEATURE_DISABLED_BY_DEFAULT};
30
28 const base::Feature kBackgroundLoaderForDownloadsFeature{ 31 const base::Feature kBackgroundLoaderForDownloadsFeature{
29 "BackgroundLoadingForDownloads", base::FEATURE_ENABLED_BY_DEFAULT}; 32 "BackgroundLoadingForDownloads", base::FEATURE_ENABLED_BY_DEFAULT};
30 33
31 const base::Feature kOfflinePagesAsyncDownloadFeature { 34 const base::Feature kOfflinePagesAsyncDownloadFeature {
32 "OfflinePagesAsyncDownload", base::FEATURE_DISABLED_BY_DEFAULT 35 "OfflinePagesAsyncDownload", base::FEATURE_DISABLED_BY_DEFAULT
33 }; 36 };
34 37
35 bool IsOfflineBookmarksEnabled() { 38 bool IsOfflineBookmarksEnabled() {
36 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature); 39 return base::FeatureList::IsEnabled(kOfflineBookmarksFeature);
37 } 40 }
38 41
39 bool IsOffliningRecentPagesEnabled() { 42 bool IsOffliningRecentPagesEnabled() {
40 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature); 43 return base::FeatureList::IsEnabled(kOffliningRecentPagesFeature);
41 } 44 }
42 45
46 bool IsOfflinePagesSvelteConcurrentLoadingEnabled() {
47 return base::FeatureList::IsEnabled(
48 kOfflinePagesSvelteConcurrentLoadingFeature);
49 }
50
43 bool IsOfflinePagesCTEnabled() { 51 bool IsOfflinePagesCTEnabled() {
44 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature); 52 return base::FeatureList::IsEnabled(kOfflinePagesCTFeature);
45 } 53 }
46 54
47 bool IsOfflinePagesSharingEnabled() { 55 bool IsOfflinePagesSharingEnabled() {
48 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature); 56 return base::FeatureList::IsEnabled(kOfflinePagesSharingFeature);
49 } 57 }
50 58
51 bool IsBackgroundLoaderForDownloadsEnabled() { 59 bool IsBackgroundLoaderForDownloadsEnabled() {
52 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature); 60 return base::FeatureList::IsEnabled(kBackgroundLoaderForDownloadsFeature);
53 } 61 }
54 62
55 bool IsOfflinePagesAsyncDownloadEnabled() { 63 bool IsOfflinePagesAsyncDownloadEnabled() {
56 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature); 64 return base::FeatureList::IsEnabled(kOfflinePagesAsyncDownloadFeature);
57 } 65 }
58 66
59 } // namespace offline_pages 67 } // namespace offline_pages
OLDNEW
« no previous file with comments | « components/offline_pages/offline_page_feature.h ('k') | components/offline_pages/offline_page_model_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698