| 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 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 // Array of features exposed through the Java ChromeFeatureList API. Entries in | 26 // Array of features exposed through the Java ChromeFeatureList API. Entries in |
| 27 // this array may either refer to features defined in the header of this file or | 27 // this array may either refer to features defined in the header of this file or |
| 28 // in other locations in the code base (e.g. chrome/, components/, etc). | 28 // in other locations in the code base (e.g. chrome/, components/, etc). |
| 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 &kMediaStyleNotification, | |
| 36 &kNTPFakeOmniboxTextFeature, | 35 &kNTPFakeOmniboxTextFeature, |
| 37 &kNTPMaterialDesign, | 36 &kNTPMaterialDesign, |
| 38 &kNTPOfflinePagesFeature, | 37 &kNTPOfflinePagesFeature, |
| 39 &kNTPSnippetsFeature, | 38 &kNTPSnippetsFeature, |
| 40 &kNTPToolbarFeature, | 39 &kNTPToolbarFeature, |
| 41 &kPhysicalWebFeature, | 40 &kPhysicalWebFeature, |
| 42 &kPhysicalWebIgnoreOtherClientsFeature, | 41 &kPhysicalWebIgnoreOtherClientsFeature, |
| 43 &kReadItLaterInMenu, | 42 &kReadItLaterInMenu, |
| 44 &kSystemDownloadManager, | 43 &kSystemDownloadManager, |
| 45 &offline_pages::kOfflinePagesBackgroundLoadingFeature, | 44 &offline_pages::kOfflinePagesBackgroundLoadingFeature, |
| 46 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. | 45 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. |
| 47 }; | 46 }; |
| 48 | 47 |
| 49 } // namespace | 48 } // namespace |
| 50 | 49 |
| 51 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | 50 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", |
| 52 base::FEATURE_DISABLED_BY_DEFAULT}; | 51 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 53 | 52 |
| 54 const base::Feature kMediaStyleNotification { | |
| 55 "MediaStyleNotification", base::FEATURE_ENABLED_BY_DEFAULT | |
| 56 }; | |
| 57 | |
| 58 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", | 53 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", |
| 59 base::FEATURE_ENABLED_BY_DEFAULT}; | 54 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 60 | 55 |
| 61 const base::Feature kNTPOfflinePagesFeature { | 56 const base::Feature kNTPOfflinePagesFeature { |
| 62 "NTPOfflinePages", base::FEATURE_DISABLED_BY_DEFAULT | 57 "NTPOfflinePages", base::FEATURE_DISABLED_BY_DEFAULT |
| 63 }; | 58 }; |
| 64 | 59 |
| 65 const base::Feature kNTPSnippetsFeature { | 60 const base::Feature kNTPSnippetsFeature { |
| 66 "NTPSnippets", base::FEATURE_DISABLED_BY_DEFAULT | 61 "NTPSnippets", base::FEATURE_DISABLED_BY_DEFAULT |
| 67 }; | 62 }; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 NOTREACHED(); | 101 NOTREACHED(); |
| 107 return false; | 102 return false; |
| 108 } | 103 } |
| 109 | 104 |
| 110 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 105 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 111 return RegisterNativesImpl(env); | 106 return RegisterNativesImpl(env); |
| 112 } | 107 } |
| 113 | 108 |
| 114 } // namespace android | 109 } // namespace android |
| 115 } // namespace chrome | 110 } // namespace chrome |
| OLD | NEW |