OLD | NEW |
---|---|
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 "chrome/browser/android/chrome_feature_list.h" | 5 #include "chrome/browser/android/chrome_feature_list.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... | |
29 const base::Feature* kFeaturesExposedToJava[] = { | 29 const base::Feature* kFeaturesExposedToJava[] = { |
30 &features::kAutoplayMutedVideos, | 30 &features::kAutoplayMutedVideos, |
31 &features::kCredentialManagementAPI, | 31 &features::kCredentialManagementAPI, |
32 &features::kSimplifiedFullscreenUI, | 32 &features::kSimplifiedFullscreenUI, |
33 &kAndroidPayIntegrationV1, | 33 &kAndroidPayIntegrationV1, |
34 &kImportantSitesInCBD, | 34 &kImportantSitesInCBD, |
35 &kNTPFakeOmniboxTextFeature, | 35 &kNTPFakeOmniboxTextFeature, |
36 &kNTPMaterialDesign, | 36 &kNTPMaterialDesign, |
37 &kNTPOfflinePagesFeature, | 37 &kNTPOfflinePagesFeature, |
38 &kNTPSnippetsFeature, | 38 &kNTPSnippetsFeature, |
39 &kNTPOfflinePageSuggestionsFeature, | |
39 &kNTPToolbarFeature, | 40 &kNTPToolbarFeature, |
40 &kPhysicalWebFeature, | 41 &kPhysicalWebFeature, |
41 &kPhysicalWebIgnoreOtherClientsFeature, | 42 &kPhysicalWebIgnoreOtherClientsFeature, |
42 &kReadItLaterInMenu, | 43 &kReadItLaterInMenu, |
43 &kSystemDownloadManager, | 44 &kSystemDownloadManager, |
44 &offline_pages::kOfflinePagesBackgroundLoadingFeature, | 45 &offline_pages::kOfflinePagesBackgroundLoadingFeature, |
45 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. | 46 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. |
46 }; | 47 }; |
47 | 48 |
48 } // namespace | 49 } // namespace |
49 | 50 |
50 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | 51 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", |
51 base::FEATURE_DISABLED_BY_DEFAULT}; | 52 base::FEATURE_DISABLED_BY_DEFAULT}; |
52 | 53 |
53 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", | 54 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", |
54 base::FEATURE_ENABLED_BY_DEFAULT}; | 55 base::FEATURE_ENABLED_BY_DEFAULT}; |
55 | 56 |
56 const base::Feature kNTPOfflinePagesFeature { | 57 const base::Feature kNTPOfflinePagesFeature { |
57 "NTPOfflinePages", base::FEATURE_DISABLED_BY_DEFAULT | 58 "NTPOfflinePages", base::FEATURE_DISABLED_BY_DEFAULT |
58 }; | 59 }; |
59 | 60 |
60 const base::Feature kNTPSnippetsFeature { | 61 const base::Feature kNTPSnippetsFeature { |
61 "NTPSnippets", base::FEATURE_DISABLED_BY_DEFAULT | 62 "NTPSnippets", base::FEATURE_DISABLED_BY_DEFAULT |
62 }; | 63 }; |
63 | 64 |
65 const base::Feature kNTPOfflinePageSuggestionsFeature{ | |
66 "NTPOfflinePageSuggestions", base::FEATURE_DISABLED_BY_DEFAULT}; | |
Marc Treib
2016/07/14 12:16:53
nit: this is formatted differently than all the ot
Philipp Keck
2016/07/14 13:46:02
This is "git cl" formatted. Both the seemingly mis
Marc Treib
2016/07/14 16:13:16
Can we stay consistent with how the rest of the en
Philipp Keck
2016/07/15 09:08:41
Ok. For about_flags.cc, I don't want to reformat t
| |
67 | |
64 const base::Feature kNTPToolbarFeature { | 68 const base::Feature kNTPToolbarFeature { |
65 "NTPToolbar", base::FEATURE_ENABLED_BY_DEFAULT | 69 "NTPToolbar", base::FEATURE_ENABLED_BY_DEFAULT |
66 }; | 70 }; |
67 | 71 |
68 const base::Feature kNTPFakeOmniboxTextFeature { | 72 const base::Feature kNTPFakeOmniboxTextFeature { |
69 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT | 73 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT |
70 }; | 74 }; |
71 | 75 |
72 const base::Feature kAndroidPayIntegrationV1 { | 76 const base::Feature kAndroidPayIntegrationV1 { |
73 "AndroidPayIntegrationV1", base::FEATURE_ENABLED_BY_DEFAULT | 77 "AndroidPayIntegrationV1", base::FEATURE_ENABLED_BY_DEFAULT |
(...skipping 27 matching lines...) Expand all Loading... | |
101 NOTREACHED(); | 105 NOTREACHED(); |
102 return false; | 106 return false; |
103 } | 107 } |
104 | 108 |
105 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 109 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
106 return RegisterNativesImpl(env); | 110 return RegisterNativesImpl(env); |
107 } | 111 } |
108 | 112 |
109 } // namespace android | 113 } // namespace android |
110 } // namespace chrome | 114 } // namespace chrome |
OLD | NEW |