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

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

Issue 1956513003: Enable Physical Web feature by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | no next file » | 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 const base::Feature kNTPToolbarFeature { 59 const base::Feature kNTPToolbarFeature {
60 "NTPToolbar", base::FEATURE_ENABLED_BY_DEFAULT 60 "NTPToolbar", base::FEATURE_ENABLED_BY_DEFAULT
61 }; 61 };
62 62
63 const base::Feature kNTPFakeOmniboxTextFeature { 63 const base::Feature kNTPFakeOmniboxTextFeature {
64 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT 64 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT
65 }; 65 };
66 66
67 const base::Feature kPhysicalWebFeature { 67 const base::Feature kPhysicalWebFeature {
68 "PhysicalWeb", base::FEATURE_DISABLED_BY_DEFAULT 68 "PhysicalWeb", base::FEATURE_ENABLED_BY_DEFAULT
69 }; 69 };
70 70
71 const base::Feature kSystemDownloadManager { 71 const base::Feature kSystemDownloadManager {
72 "SystemDownloadManager", base::FEATURE_ENABLED_BY_DEFAULT 72 "SystemDownloadManager", base::FEATURE_ENABLED_BY_DEFAULT
73 }; 73 };
74 74
75 static jboolean IsEnabled(JNIEnv* env, 75 static jboolean IsEnabled(JNIEnv* env,
76 const JavaParamRef<jclass>& clazz, 76 const JavaParamRef<jclass>& clazz,
77 const JavaParamRef<jstring>& jfeature_name) { 77 const JavaParamRef<jstring>& jfeature_name) {
78 const std::string feature_name = ConvertJavaStringToUTF8(env, jfeature_name); 78 const std::string feature_name = ConvertJavaStringToUTF8(env, jfeature_name);
79 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) { 79 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) {
80 if (kFeaturesExposedToJava[i]->name == feature_name) 80 if (kFeaturesExposedToJava[i]->name == feature_name)
81 return base::FeatureList::IsEnabled(*kFeaturesExposedToJava[i]); 81 return base::FeatureList::IsEnabled(*kFeaturesExposedToJava[i]);
82 } 82 }
83 // Features queried via this API must be present in |kFeaturesExposedToJava|. 83 // Features queried via this API must be present in |kFeaturesExposedToJava|.
84 NOTREACHED(); 84 NOTREACHED();
85 return false; 85 return false;
86 } 86 }
87 87
88 bool RegisterChromeFeatureListJni(JNIEnv* env) { 88 bool RegisterChromeFeatureListJni(JNIEnv* env) {
89 return RegisterNativesImpl(env); 89 return RegisterNativesImpl(env);
90 } 90 }
91 91
92 } // namespace android 92 } // namespace android
93 } // namespace chrome 93 } // namespace chrome
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698