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

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

Issue 2123863004: ScreenCapture for Android phase1, part II (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 3 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
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421. 57 &offline_pages::kOfflinePagesCTFeature, // See crbug.com/620421.
58 &offline_pages::kOfflinePagesSharingFeature, 58 &offline_pages::kOfflinePagesSharingFeature,
59 &password_manager::features::kViewPasswords, 59 &password_manager::features::kViewPasswords,
60 }; 60 };
61 61
62 } // namespace 62 } // namespace
63 63
64 const base::Feature kAllBookmarksFeature{"AllBookmarks", 64 const base::Feature kAllBookmarksFeature{"AllBookmarks",
65 base::FEATURE_ENABLED_BY_DEFAULT}; 65 base::FEATURE_ENABLED_BY_DEFAULT};
66 66
67 const base::Feature kAndroidPayIntegrationV1{"AndroidPayIntegrationV1",
68 base::FEATURE_ENABLED_BY_DEFAULT};
69
67 const base::Feature kDownloadsUiFeature{"DownloadsUi", 70 const base::Feature kDownloadsUiFeature{"DownloadsUi",
68 base::FEATURE_DISABLED_BY_DEFAULT}; 71 base::FEATURE_DISABLED_BY_DEFAULT};
69 72
70 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD", 73 const base::Feature kImportantSitesInCBD{"ImportantSitesInCBD",
71 base::FEATURE_DISABLED_BY_DEFAULT}; 74 base::FEATURE_DISABLED_BY_DEFAULT};
72 75
73 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign", 76 const base::Feature kNTPMaterialDesign{"NTPMaterialDesign",
74 base::FEATURE_ENABLED_BY_DEFAULT}; 77 base::FEATURE_ENABLED_BY_DEFAULT};
75 78
76 const base::Feature kNTPOfflinePagesFeature{"NTPOfflinePages", 79 const base::Feature kNTPOfflinePagesFeature{"NTPOfflinePages",
77 base::FEATURE_DISABLED_BY_DEFAULT}; 80 base::FEATURE_DISABLED_BY_DEFAULT};
78 81
79 const base::Feature kNTPFakeOmniboxTextFeature{ 82 const base::Feature kNTPFakeOmniboxTextFeature{
80 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT}; 83 "NTPFakeOmniboxText", base::FEATURE_DISABLED_BY_DEFAULT};
81 84
82 const base::Feature kAndroidPayIntegrationV1{"AndroidPayIntegrationV1",
83 base::FEATURE_ENABLED_BY_DEFAULT};
84
85 const base::Feature kPhysicalWebFeature{"PhysicalWeb", 85 const base::Feature kPhysicalWebFeature{"PhysicalWeb",
86 base::FEATURE_ENABLED_BY_DEFAULT}; 86 base::FEATURE_ENABLED_BY_DEFAULT};
87 87
88 const base::Feature kPhysicalWebIgnoreOtherClientsFeature{ 88 const base::Feature kPhysicalWebIgnoreOtherClientsFeature{
89 "PhysicalWebIgnoreOtherClients", base::FEATURE_DISABLED_BY_DEFAULT}; 89 "PhysicalWebIgnoreOtherClients", base::FEATURE_DISABLED_BY_DEFAULT};
90 90
91 const base::Feature kReadItLaterInMenu{"ReadItLaterInMenu", 91 const base::Feature kReadItLaterInMenu{"ReadItLaterInMenu",
92 base::FEATURE_DISABLED_BY_DEFAULT}; 92 base::FEATURE_DISABLED_BY_DEFAULT};
93 93
94 const base::Feature kScanCardsInWebPayments{"ScanCardsInWebPayments", 94 const base::Feature kScanCardsInWebPayments{"ScanCardsInWebPayments",
95 base::FEATURE_DISABLED_BY_DEFAULT}; 95 base::FEATURE_DISABLED_BY_DEFAULT};
96 96
97 const base::Feature kSpecialLocaleFeature{"SpecialLocale", 97 const base::Feature kSpecialLocaleFeature{"SpecialLocale",
98 base::FEATURE_DISABLED_BY_DEFAULT}; 98 base::FEATURE_DISABLED_BY_DEFAULT};
99 99
100 const base::Feature kSpecialLocaleWrapper{"SpecialLocaleWrapper", 100 const base::Feature kSpecialLocaleWrapper{"SpecialLocaleWrapper",
101 base::FEATURE_ENABLED_BY_DEFAULT}; 101 base::FEATURE_ENABLED_BY_DEFAULT};
102 102
103 const base::Feature kTabReparenting { 103 const base::Feature kTabReparenting{"TabReparenting",
104 "TabReparenting", base::FEATURE_ENABLED_BY_DEFAULT 104 base::FEATURE_ENABLED_BY_DEFAULT};
105 }; 105
106 const base::Feature kUserMediaScreenCapturing{
107 "UserMediaScreenCapturing", base::FEATURE_DISABLED_BY_DEFAULT};
106 108
107 static jboolean IsEnabled(JNIEnv* env, 109 static jboolean IsEnabled(JNIEnv* env,
108 const JavaParamRef<jclass>& clazz, 110 const JavaParamRef<jclass>& clazz,
109 const JavaParamRef<jstring>& jfeature_name) { 111 const JavaParamRef<jstring>& jfeature_name) {
110 const std::string feature_name = ConvertJavaStringToUTF8(env, jfeature_name); 112 const std::string feature_name = ConvertJavaStringToUTF8(env, jfeature_name);
111 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) { 113 for (size_t i = 0; i < arraysize(kFeaturesExposedToJava); ++i) {
112 if (kFeaturesExposedToJava[i]->name == feature_name) 114 if (kFeaturesExposedToJava[i]->name == feature_name)
113 return base::FeatureList::IsEnabled(*kFeaturesExposedToJava[i]); 115 return base::FeatureList::IsEnabled(*kFeaturesExposedToJava[i]);
114 } 116 }
115 // Features queried via this API must be present in |kFeaturesExposedToJava|. 117 // Features queried via this API must be present in |kFeaturesExposedToJava|.
116 NOTREACHED(); 118 NOTREACHED();
117 return false; 119 return false;
118 } 120 }
119 121
120 bool RegisterChromeFeatureListJni(JNIEnv* env) { 122 bool RegisterChromeFeatureListJni(JNIEnv* env) {
121 return RegisterNativesImpl(env); 123 return RegisterNativesImpl(env);
122 } 124 }
123 125
124 } // namespace android 126 } // namespace android
125 } // namespace chrome 127 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_feature_list.h ('k') | chrome/browser/android/tab_web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698