| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 &kSpecialLocaleWrapper, | 68 &kSpecialLocaleWrapper, |
| 69 &kTabsInCBD, | 69 &kTabsInCBD, |
| 70 &kTabReparenting, | 70 &kTabReparenting, |
| 71 &kUploadCrashReportsUsingJobScheduler, | 71 &kUploadCrashReportsUsingJobScheduler, |
| 72 &kWebPaymentsModifiers, | 72 &kWebPaymentsModifiers, |
| 73 &kWebPaymentsSingleAppUiSkip, | 73 &kWebPaymentsSingleAppUiSkip, |
| 74 &kWebVRCardboardSupport, | 74 &kWebVRCardboardSupport, |
| 75 &ntp_snippets::kIncreasedVisibility, | 75 &ntp_snippets::kIncreasedVisibility, |
| 76 &ntp_snippets::kForeignSessionsSuggestionsFeature, | 76 &ntp_snippets::kForeignSessionsSuggestionsFeature, |
| 77 &ntp_snippets::kOfflineBadgeFeature, | 77 &ntp_snippets::kOfflineBadgeFeature, |
| 78 &ntp_snippets::kPublisherFaviconsFromNewServerFeature, |
| 78 &ntp_snippets::kSaveToOfflineFeature, | 79 &ntp_snippets::kSaveToOfflineFeature, |
| 79 &offline_pages::kBackgroundLoaderForDownloadsFeature, | 80 &offline_pages::kBackgroundLoaderForDownloadsFeature, |
| 80 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. | 81 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. |
| 81 &offline_pages::kOfflinePagesSharingFeature, | 82 &offline_pages::kOfflinePagesSharingFeature, |
| 82 &password_manager::features::kViewPasswords, | 83 &password_manager::features::kViewPasswords, |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 const base::Feature* FindFeatureExposedToJava(const std::string& feature_name) { | 86 const base::Feature* FindFeatureExposedToJava(const std::string& feature_name) { |
| 86 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) { | 87 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) { |
| 87 if (kFeaturesExposedToJava[i]->name == feature_name) | 88 if (kFeaturesExposedToJava[i]->name == feature_name) |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, | 255 return base::GetFieldTrialParamByFeatureAsBool(*feature, param_name, |
| 255 jdefault_value); | 256 jdefault_value); |
| 256 } | 257 } |
| 257 | 258 |
| 258 bool RegisterChromeFeatureListJni(JNIEnv* env) { | 259 bool RegisterChromeFeatureListJni(JNIEnv* env) { |
| 259 return RegisterNativesImpl(env); | 260 return RegisterNativesImpl(env); |
| 260 } | 261 } |
| 261 | 262 |
| 262 } // namespace android | 263 } // namespace android |
| 263 } // namespace chrome | 264 } // namespace chrome |
| OLD | NEW |