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

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

Issue 2847273002: Reverse postscript flag direction (Closed)
Patch Set: Restore previous values to histograms.xml Created 3 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 | « chrome/common/chrome_features.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 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "extensions/features/features.h" 9 #include "extensions/features/features.h"
10 #include "ppapi/features/features.h" 10 #include "ppapi/features/features.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 232
233 // If enabled, the list of content suggestions on the New Tab page will contain 233 // If enabled, the list of content suggestions on the New Tab page will contain
234 // pages that the user downloaded for later use. 234 // pages that the user downloaded for later use.
235 const base::Feature kOfflinePageDownloadSuggestionsFeature{ 235 const base::Feature kOfflinePageDownloadSuggestionsFeature{
236 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; 236 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
237 237
238 // Enables Permissions Blacklisting via Safe Browsing. 238 // Enables Permissions Blacklisting via Safe Browsing.
239 const base::Feature kPermissionsBlacklist{ 239 const base::Feature kPermissionsBlacklist{
240 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; 240 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT};
241 241
242 // Enables PostScript generation instead of EMF when printing to PostScript 242 // Disables PostScript generation when printing to PostScript capable printers
243 // capable printers. 243 // and instead sends Emf files.
244 #if defined(OS_WIN) 244 #if defined(OS_WIN)
245 const base::Feature kPostScriptPrinting{"PostScriptPrinting", 245 const base::Feature kDisablePostScriptPrinting{
246 base::FEATURE_DISABLED_BY_DEFAULT}; 246 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT};
247 #endif 247 #endif
248 248
249 #if BUILDFLAG(ENABLE_PLUGINS) 249 #if BUILDFLAG(ENABLE_PLUGINS)
250 // Prefer HTML content by hiding Flash from the list of plugins. 250 // Prefer HTML content by hiding Flash from the list of plugins.
251 // https://crbug.com/626728 251 // https://crbug.com/626728
252 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", 252 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins",
253 base::FEATURE_DISABLED_BY_DEFAULT}; 253 base::FEATURE_DISABLED_BY_DEFAULT};
254 #endif 254 #endif
255 255
256 // Enables the pref service. See https://crbug.com/654988. 256 // Enables the pref service. See https://crbug.com/654988.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 return base::FeatureList::IsEnabled(features::kPrefService) || 339 return base::FeatureList::IsEnabled(features::kPrefService) ||
340 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 340 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
341 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 341 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
342 switches::kMusConfig) == switches::kMash; 342 switches::kMusConfig) == switches::kMash;
343 #else 343 #else
344 false; 344 false;
345 #endif 345 #endif
346 } 346 }
347 347
348 } // namespace features 348 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698