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

Side by Side Diff: chrome/common/chrome_features.cc

Issue 2529383004: Convert PermissionsBlacklist flag to base::Feature. (Closed)
Patch Set: Add Permission Blacklist feature to histograms.xml Created 4 years 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/common/chrome_features.h ('k') | chrome/common/chrome_switches.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/common/chrome_features.h" 5 #include "chrome/common/chrome_features.h"
6 6
7 #include "extensions/features/features.h" 7 #include "extensions/features/features.h"
8 #include "ppapi/features/features.h" 8 #include "ppapi/features/features.h"
9 9
10 namespace features { 10 namespace features {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // If enabled, the list of content suggestions on the New Tab page will contain 154 // If enabled, the list of content suggestions on the New Tab page will contain
155 // pages that the user downloaded for later use. 155 // pages that the user downloaded for later use.
156 const base::Feature kOfflinePageDownloadSuggestionsFeature{ 156 const base::Feature kOfflinePageDownloadSuggestionsFeature{
157 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; 157 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
158 158
159 // Enables YouTube Flash videos to be overridden. 159 // Enables YouTube Flash videos to be overridden.
160 const base::Feature kOverrideYouTubeFlashEmbed{ 160 const base::Feature kOverrideYouTubeFlashEmbed{
161 "OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT}; 161 "OverrideYouTubeFlashEmbed", base::FEATURE_ENABLED_BY_DEFAULT};
162 162
163 // Enables Permissions Blacklisting via Safe Browsing.
164 const base::Feature kPermissionsBlacklist{
165 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT};
166
163 #if BUILDFLAG(ENABLE_PLUGINS) 167 #if BUILDFLAG(ENABLE_PLUGINS)
164 // Prefer HTML content by hiding Flash from the list of plugins. 168 // Prefer HTML content by hiding Flash from the list of plugins.
165 // https://crbug.com/626728 169 // https://crbug.com/626728
166 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", 170 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins",
167 base::FEATURE_DISABLED_BY_DEFAULT}; 171 base::FEATURE_DISABLED_BY_DEFAULT};
168 #endif 172 #endif
169 173
170 // Enables the Print Scaling feature in print preview. 174 // Enables the Print Scaling feature in print preview.
171 #if BUILDFLAG(ENABLE_PRINT_PREVIEW) 175 #if BUILDFLAG(ENABLE_PRINT_PREVIEW)
172 const base::Feature kPrintScaling{"PrintScaling", 176 const base::Feature kPrintScaling{"PrintScaling",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 // Enables or disables PIN quick unlock settings integration. 230 // Enables or disables PIN quick unlock settings integration.
227 const base::Feature kQuickUnlockPin{"QuickUnlockPin", 231 const base::Feature kQuickUnlockPin{"QuickUnlockPin",
228 base::FEATURE_DISABLED_BY_DEFAULT}; 232 base::FEATURE_DISABLED_BY_DEFAULT};
229 233
230 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 234 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
231 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 235 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
232 base::FEATURE_DISABLED_BY_DEFAULT}; 236 base::FEATURE_DISABLED_BY_DEFAULT};
233 #endif // defined(OS_CHROMEOS) 237 #endif // defined(OS_CHROMEOS)
234 238
235 } // namespace features 239 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698