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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 // Array of features exposed through the Java ChromeFeatureList API. Entries in | 29 // Array of features exposed through the Java ChromeFeatureList API. Entries in |
30 // this array may either refer to features defined in the header of this file or | 30 // this array may either refer to features defined in the header of this file or |
31 // in other locations in the code base (e.g. chrome/, components/, etc). | 31 // in other locations in the code base (e.g. chrome/, components/, etc). |
32 const base::Feature* kFeaturesExposedToJava[] = { | 32 const base::Feature* kFeaturesExposedToJava[] = { |
33 &features::kAutoplayMutedVideos, | 33 &features::kAutoplayMutedVideos, |
34 &features::kCredentialManagementAPI, | 34 &features::kCredentialManagementAPI, |
35 &features::kSimplifiedFullscreenUI, | 35 &features::kSimplifiedFullscreenUI, |
36 &features::kWebPayments, | 36 &features::kWebPayments, |
37 &kAllBookmarksFeature, | 37 &kAllBookmarksFeature, |
| 38 &kDownloadsUiFeature, |
38 &kAndroidPayIntegrationV1, | 39 &kAndroidPayIntegrationV1, |
39 &kImportantSitesInCBD, | 40 &kImportantSitesInCBD, |
40 &ntp_snippets::kContentSuggestionsFeature, | 41 &ntp_snippets::kContentSuggestionsFeature, |
41 &kNTPFakeOmniboxTextFeature, | 42 &kNTPFakeOmniboxTextFeature, |
42 &kNTPMaterialDesign, | 43 &kNTPMaterialDesign, |
43 &kNTPOfflinePagesFeature, | 44 &kNTPOfflinePagesFeature, |
44 &kNTPToolbarFeature, | 45 &kNTPToolbarFeature, |
45 &kPhysicalWebFeature, | 46 &kPhysicalWebFeature, |
46 &kPhysicalWebIgnoreOtherClientsFeature, | 47 &kPhysicalWebIgnoreOtherClientsFeature, |
47 &kReadItLaterInMenu, | 48 &kReadItLaterInMenu, |
48 &kSystemDownloadManager, | 49 &kSystemDownloadManager, |
49 &kTabReparenting, | 50 &kTabReparenting, |
50 &offline_pages::kOfflinePagesBackgroundLoadingFeature, | 51 &offline_pages::kOfflinePagesBackgroundLoadingFeature, |
51 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. | 52 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. |
52 &offline_pages::kOfflinePagesSharingFeature, | 53 &offline_pages::kOfflinePagesSharingFeature, |
53 &password_manager::features::kViewPasswords, | 54 &password_manager::features::kViewPasswords, |
54 }; | 55 }; |
55 | 56 |
56 } // namespace | 57 } // namespace |
57 | 58 |
58 const base::Feature kAllBookmarksFeature{"AllBookmarks", | 59 const base::Feature kAllBookmarksFeature{"AllBookmarks", |
59 base::FEATURE_ENABLED_BY_DEFAULT}; | 60 base::FEATURE_ENABLED_BY_DEFAULT}; |
60 | 61 |
| 62 const base::Feature kDownloadsUiFeature{"DownloadsUi", |
| 63 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 64 |
61 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | 65 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", |
62 base::FEATURE_DISABLED_BY_DEFAULT}; | 66 base::FEATURE_DISABLED_BY_DEFAULT}; |
63 | 67 |
64 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", | 68 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", |
65 base::FEATURE_ENABLED_BY_DEFAULT}; | 69 base::FEATURE_ENABLED_BY_DEFAULT}; |
66 | 70 |
67 const base::Feature kNTPOfflinePagesFeature{"NTPOfflinePages", | 71 const base::Feature kNTPOfflinePagesFeature{"NTPOfflinePages", |
68 base::FEATURE_DISABLED_BY_DEFAULT}; | 72 base::FEATURE_DISABLED_BY_DEFAULT}; |
69 | 73 |
70 const base::Feature kNTPToolbarFeature{"NTPToolbar", | 74 const base::Feature kNTPToolbarFeature{"NTPToolbar", |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 NOTREACHED(); | 108 NOTREACHED(); |
105 return false; | 109 return false; |
106 } | 110 } |
107 | 111 |
108 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 112 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
109 return RegisterNativesImpl(env); | 113 return RegisterNativesImpl(env); |
110 } | 114 } |
111 | 115 |
112 } // namespace android | 116 } // namespace android |
113 } // namespace chrome | 117 } // namespace chrome |
OLD | NEW |