Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Side by Side Diff: chrome/browser/android/chrome_feature_list.cc

Issue 2644573003: Initial version of the split CBD dialog (Closed)
Patch Set: rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/android/chrome_feature_list.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 &kImprovedA2HS, 50 &kImprovedA2HS,
51 &kNativeAndroidHistoryManager, 51 &kNativeAndroidHistoryManager,
52 &kNoCreditCardAbort, 52 &kNoCreditCardAbort,
53 &kNTPFakeOmniboxTextFeature, 53 &kNTPFakeOmniboxTextFeature,
54 &kNTPOfflinePagesFeature, 54 &kNTPOfflinePagesFeature,
55 &kNTPSuggestionsStandaloneUIFeature, 55 &kNTPSuggestionsStandaloneUIFeature,
56 &kPhysicalWebFeature, 56 &kPhysicalWebFeature,
57 &kPhysicalWebIgnoreOtherClientsFeature, 57 &kPhysicalWebIgnoreOtherClientsFeature,
58 &kSpecialLocaleFeature, 58 &kSpecialLocaleFeature,
59 &kSpecialLocaleWrapper, 59 &kSpecialLocaleWrapper,
60 &kTabsInCBD,
60 &kTabReparenting, 61 &kTabReparenting,
61 &kWebPaymentsModifiers, 62 &kWebPaymentsModifiers,
62 &ntp_snippets::kContentSuggestionsFeature, 63 &ntp_snippets::kContentSuggestionsFeature,
63 &ntp_snippets::kIncreasedVisibility, 64 &ntp_snippets::kIncreasedVisibility,
64 &ntp_snippets::kForeignSessionsSuggestionsFeature, 65 &ntp_snippets::kForeignSessionsSuggestionsFeature,
65 &ntp_snippets::kOfflineBadgeFeature, 66 &ntp_snippets::kOfflineBadgeFeature,
66 &ntp_snippets::kSaveToOfflineFeature, 67 &ntp_snippets::kSaveToOfflineFeature,
67 &ntp_snippets::kSectionDismissalFeature, 68 &ntp_snippets::kSectionDismissalFeature,
68 &offline_pages::kBackgroundLoaderForDownloadsFeature, 69 &offline_pages::kBackgroundLoaderForDownloadsFeature,
69 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. 70 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 127
127 const base::Feature kPhysicalWebIgnoreOtherClientsFeature{ 128 const base::Feature kPhysicalWebIgnoreOtherClientsFeature{
128 "PhysicalWebIgnoreOtherClients", base::FEATURE_DISABLED_BY_DEFAULT}; 129 "PhysicalWebIgnoreOtherClients", base::FEATURE_DISABLED_BY_DEFAULT};
129 130
130 const base::Feature kSpecialLocaleFeature{"SpecialLocale", 131 const base::Feature kSpecialLocaleFeature{"SpecialLocale",
131 base::FEATURE_DISABLED_BY_DEFAULT}; 132 base::FEATURE_DISABLED_BY_DEFAULT};
132 133
133 const base::Feature kSpecialLocaleWrapper{"SpecialLocaleWrapper", 134 const base::Feature kSpecialLocaleWrapper{"SpecialLocaleWrapper",
134 base::FEATURE_ENABLED_BY_DEFAULT}; 135 base::FEATURE_ENABLED_BY_DEFAULT};
135 136
137 const base::Feature kTabsInCBD{"TabsInCBD", base::FEATURE_DISABLED_BY_DEFAULT};
138
136 const base::Feature kTabReparenting{"TabReparenting", 139 const base::Feature kTabReparenting{"TabReparenting",
137 base::FEATURE_ENABLED_BY_DEFAULT}; 140 base::FEATURE_ENABLED_BY_DEFAULT};
138 141
139 const base::Feature kUserMediaScreenCapturing{ 142 const base::Feature kUserMediaScreenCapturing{
140 "UserMediaScreenCapturing", base::FEATURE_DISABLED_BY_DEFAULT}; 143 "UserMediaScreenCapturing", base::FEATURE_DISABLED_BY_DEFAULT};
141 144
142 const base::Feature kWebPaymentsModifiers{"WebPaymentsModifiers", 145 const base::Feature kWebPaymentsModifiers{"WebPaymentsModifiers",
143 base::FEATURE_DISABLED_BY_DEFAULT}; 146 base::FEATURE_DISABLED_BY_DEFAULT};
144 147
145 static jboolean IsEnabled(JNIEnv* env, 148 static jboolean IsEnabled(JNIEnv* env,
146 const JavaParamRef<jclass>& clazz, 149 const JavaParamRef<jclass>& clazz,
147 const JavaParamRef<jstring>& jfeature_name) { 150 const JavaParamRef<jstring>& jfeature_name) {
148 const std::string feature_name = ConvertJavaStringToUTF8(env, jfeature_name); 151 const std::string feature_name = ConvertJavaStringToUTF8(env, jfeature_name);
149 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) { 152 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) {
150 if (kFeaturesExposedToJava[i]->name == feature_name) 153 if (kFeaturesExposedToJava[i]->name == feature_name)
151 return base::FeatureList::IsEnabled(*kFeaturesExposedToJava[i]); 154 return base::FeatureList::IsEnabled(*kFeaturesExposedToJava[i]);
152 } 155 }
153 // Features queried via this API must be present in |kFeaturesExposedToJava|. 156 // Features queried via this API must be present in |kFeaturesExposedToJava|.
154 NOTREACHED(); 157 NOTREACHED();
155 return false; 158 return false;
156 } 159 }
157 160
158 bool RegisterChromeFeatureListJni(JNIEnv* env) { 161 bool RegisterChromeFeatureListJni(JNIEnv* env) {
159 return RegisterNativesImpl(env); 162 return RegisterNativesImpl(env);
160 } 163 }
161 164
162 } // namespace android 165 } // namespace android
163 } // namespace chrome 166 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_feature_list.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698