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