| OLD | NEW |
| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 // If enabled, the list of content suggestions on the New Tab page will contain | 236 // If enabled, the list of content suggestions on the New Tab page will contain |
| 237 // pages that the user downloaded for later use. | 237 // pages that the user downloaded for later use. |
| 238 const base::Feature kOfflinePageDownloadSuggestionsFeature{ | 238 const base::Feature kOfflinePageDownloadSuggestionsFeature{ |
| 239 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; | 239 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 240 | 240 |
| 241 // Enables Permissions Blacklisting via Safe Browsing. | 241 // Enables Permissions Blacklisting via Safe Browsing. |
| 242 const base::Feature kPermissionsBlacklist{ | 242 const base::Feature kPermissionsBlacklist{ |
| 243 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; | 243 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 244 | 244 |
| 245 // Enables PostScript generation instead of EMF when printing to PostScript | 245 // Disables PostScript generation when printing to PostScript capable printers |
| 246 // capable printers. | 246 // and instead sends Emf files. |
| 247 #if defined(OS_WIN) | 247 #if defined(OS_WIN) |
| 248 const base::Feature kPostScriptPrinting{"PostScriptPrinting", | 248 const base::Feature kDisablePostScriptPrinting{ |
| 249 base::FEATURE_DISABLED_BY_DEFAULT}; | 249 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 250 #endif | 250 #endif |
| 251 | 251 |
| 252 #if BUILDFLAG(ENABLE_PLUGINS) | 252 #if BUILDFLAG(ENABLE_PLUGINS) |
| 253 // Prefer HTML content by hiding Flash from the list of plugins. | 253 // Prefer HTML content by hiding Flash from the list of plugins. |
| 254 // https://crbug.com/626728 | 254 // https://crbug.com/626728 |
| 255 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", | 255 const base::Feature kPreferHtmlOverPlugins{"PreferHtmlOverPlugins", |
| 256 base::FEATURE_DISABLED_BY_DEFAULT}; | 256 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 257 #endif | 257 #endif |
| 258 | 258 |
| 259 // Enables the pref service. See https://crbug.com/654988. | 259 // Enables the pref service. See https://crbug.com/654988. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 return base::FeatureList::IsEnabled(features::kPrefService) || | 342 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 343 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 343 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 344 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 344 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 345 switches::kMusConfig) == switches::kMash; | 345 switches::kMusConfig) == switches::kMash; |
| 346 #else | 346 #else |
| 347 false; | 347 false; |
| 348 #endif | 348 #endif |
| 349 } | 349 } |
| 350 | 350 |
| 351 } // namespace features | 351 } // namespace features |
| OLD | NEW |