| 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 const base::Feature kNativeNotifications{"NativeNotifications", | 237 const base::Feature kNativeNotifications{"NativeNotifications", |
| 238 base::FEATURE_DISABLED_BY_DEFAULT}; | 238 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 239 #endif | 239 #endif |
| 240 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) | 240 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) |
| 241 | 241 |
| 242 // If enabled, the list of content suggestions on the New Tab page will contain | 242 // If enabled, the list of content suggestions on the New Tab page will contain |
| 243 // pages that the user downloaded for later use. | 243 // pages that the user downloaded for later use. |
| 244 const base::Feature kOfflinePageDownloadSuggestionsFeature{ | 244 const base::Feature kOfflinePageDownloadSuggestionsFeature{ |
| 245 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; | 245 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 246 | 246 |
| 247 // Enables or disabled the OneGoogleBar on the local NTP. |
| 248 const base::Feature kOneGoogleBarOnLocalNtp{"OneGoogleBarOnLocalNtp", |
| 249 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 250 |
| 247 // Enables Permissions Blacklisting via Safe Browsing. | 251 // Enables Permissions Blacklisting via Safe Browsing. |
| 248 const base::Feature kPermissionsBlacklist{ | 252 const base::Feature kPermissionsBlacklist{ |
| 249 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; | 253 "PermissionsBlacklist", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 250 | 254 |
| 251 // Disables PostScript generation when printing to PostScript capable printers | 255 // Disables PostScript generation when printing to PostScript capable printers |
| 252 // and instead sends Emf files. | 256 // and instead sends Emf files. |
| 253 #if defined(OS_WIN) | 257 #if defined(OS_WIN) |
| 254 const base::Feature kDisablePostScriptPrinting{ | 258 const base::Feature kDisablePostScriptPrinting{ |
| 255 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT}; | 259 "DisablePostScriptPrinting", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 256 #endif | 260 #endif |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 base::FEATURE_DISABLED_BY_DEFAULT}; | 315 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 312 | 316 |
| 313 #if defined(SYZYASAN) | 317 #if defined(SYZYASAN) |
| 314 // Enable the deferred free mechanism in the syzyasan module, which helps the | 318 // Enable the deferred free mechanism in the syzyasan module, which helps the |
| 315 // performance by deferring some work on the critical path to a background | 319 // performance by deferring some work on the critical path to a background |
| 316 // thread. | 320 // thread. |
| 317 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", | 321 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", |
| 318 base::FEATURE_ENABLED_BY_DEFAULT}; | 322 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 319 #endif | 323 #endif |
| 320 | 324 |
| 325 // Enables using the local NTP if Google is the default search engine. |
| 326 const base::Feature kUseGoogleLocalNtp{"UseGoogleLocalNtp", |
| 327 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 328 |
| 321 // Experiment to use grouped permission infobars which could show and handle | 329 // Experiment to use grouped permission infobars which could show and handle |
| 322 // multiple permission requests. | 330 // multiple permission requests. |
| 323 const base::Feature kUseGroupedPermissionInfobars{ | 331 const base::Feature kUseGroupedPermissionInfobars{ |
| 324 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT}; | 332 "UseGroupedPermissionInfobars", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 325 | 333 |
| 326 // Feature to use the PermissionManager to show prompts for WebRTC permission | 334 // Feature to use the PermissionManager to show prompts for WebRTC permission |
| 327 // requests. | 335 // requests. |
| 328 const base::Feature kUsePermissionManagerForMediaRequests{ | 336 const base::Feature kUsePermissionManagerForMediaRequests{ |
| 329 "UsePermissionManagerForMediaRequests", base::FEATURE_DISABLED_BY_DEFAULT}; | 337 "UsePermissionManagerForMediaRequests", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 330 | 338 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 return base::FeatureList::IsEnabled(features::kPrefService) || | 370 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 363 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 371 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 364 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 372 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 365 switches::kMusConfig) == switches::kMash; | 373 switches::kMusConfig) == switches::kMash; |
| 366 #else | 374 #else |
| 367 false; | 375 false; |
| 368 #endif | 376 #endif |
| 369 } | 377 } |
| 370 | 378 |
| 371 } // namespace features | 379 } // namespace features |
| OLD | NEW |