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