| 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 |
| 11 #include "base/android/jni_string.h" | 11 #include "base/android/jni_string.h" |
| 12 #include "base/feature_list.h" | 12 #include "base/feature_list.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "chrome/common/chrome_features.h" | 14 #include "chrome/common/chrome_features.h" |
| 15 #include "components/offline_pages/offline_page_feature.h" | 15 #include "components/offline_pages/offline_page_feature.h" |
| 16 #include "components/password_manager/core/common/password_manager_features.h" |
| 16 #include "content/public/common/content_features.h" | 17 #include "content/public/common/content_features.h" |
| 17 #include "jni/ChromeFeatureList_jni.h" | 18 #include "jni/ChromeFeatureList_jni.h" |
| 18 | 19 |
| 19 using base::android::ConvertJavaStringToUTF8; | 20 using base::android::ConvertJavaStringToUTF8; |
| 20 | 21 |
| 21 namespace chrome { | 22 namespace chrome { |
| 22 namespace android { | 23 namespace android { |
| 23 | 24 |
| 24 namespace { | 25 namespace { |
| 25 | 26 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 40 &kNTPSnippetsFeature, | 41 &kNTPSnippetsFeature, |
| 41 &kNTPToolbarFeature, | 42 &kNTPToolbarFeature, |
| 42 &kPhysicalWebFeature, | 43 &kPhysicalWebFeature, |
| 43 &kPhysicalWebIgnoreOtherClientsFeature, | 44 &kPhysicalWebIgnoreOtherClientsFeature, |
| 44 &kReadItLaterInMenu, | 45 &kReadItLaterInMenu, |
| 45 &kSystemDownloadManager, | 46 &kSystemDownloadManager, |
| 46 &kTabReparenting, | 47 &kTabReparenting, |
| 47 &offline_pages::kOfflinePagesBackgroundLoadingFeature, | 48 &offline_pages::kOfflinePagesBackgroundLoadingFeature, |
| 48 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. | 49 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. |
| 49 &offline_pages::kOfflinePagesSharingFeature, | 50 &offline_pages::kOfflinePagesSharingFeature, |
| 51 &password_manager::features::kViewPasswords, |
| 50 }; | 52 }; |
| 51 | 53 |
| 52 } // namespace | 54 } // namespace |
| 53 | 55 |
| 54 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", | 56 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", |
| 55 base::FEATURE_DISABLED_BY_DEFAULT}; | 57 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 56 | 58 |
| 57 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", | 59 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", |
| 58 base::FEATURE_ENABLED_BY_DEFAULT}; | 60 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 59 | 61 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 NOTREACHED(); | 105 NOTREACHED(); |
| 104 return false; | 106 return false; |
| 105 } | 107 } |
| 106 | 108 |
| 107 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 109 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 108 return RegisterNativesImpl(env); | 110 return RegisterNativesImpl(env); |
| 109 } | 111 } |
| 110 | 112 |
| 111 } // namespace android | 113 } // namespace android |
| 112 } // namespace chrome | 114 } // namespace chrome |
| OLD | NEW |