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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 #if BUILDFLAG(ENABLE_PLUGINS) | 299 #if BUILDFLAG(ENABLE_PLUGINS) |
300 // Disables Plugin Power Saver when Flash is in ALLOW mode. | 300 // Disables Plugin Power Saver when Flash is in ALLOW mode. |
301 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode", | 301 const base::Feature kRunAllFlashInAllowMode{"RunAllFlashInAllowMode", |
302 base::FEATURE_DISABLED_BY_DEFAULT}; | 302 base::FEATURE_DISABLED_BY_DEFAULT}; |
303 #endif | 303 #endif |
304 | 304 |
305 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting", | 305 const base::Feature kSafeSearchUrlReporting{"SafeSearchUrlReporting", |
306 base::FEATURE_DISABLED_BY_DEFAULT}; | 306 base::FEATURE_DISABLED_BY_DEFAULT}; |
307 | 307 |
| 308 #if defined(OS_ANDROID) |
| 309 // Enables separate notification channels in Android O for notifications from |
| 310 // different origins, instead of sending them all to a single 'Sites' channel. |
| 311 const base::Feature kSiteNotificationChannels{ |
| 312 "SiteNotificationChannels", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 313 #endif // defined (OS_ANDROID) |
| 314 |
308 // A new user experience for transitioning into fullscreen and mouse pointer | 315 // A new user experience for transitioning into fullscreen and mouse pointer |
309 // lock states. | 316 // lock states. |
310 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", | 317 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", |
311 base::FEATURE_ENABLED_BY_DEFAULT}; | 318 base::FEATURE_ENABLED_BY_DEFAULT}; |
312 | 319 |
313 // Enables or disables UI in MD Settings to view content settings grouped by | 320 // Enables or disables UI in MD Settings to view content settings grouped by |
314 // origin. | 321 // origin. |
315 const base::Feature kSiteDetails{"SiteDetails", | 322 const base::Feature kSiteDetails{"SiteDetails", |
316 base::FEATURE_DISABLED_BY_DEFAULT}; | 323 base::FEATURE_DISABLED_BY_DEFAULT}; |
317 | 324 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 return base::FeatureList::IsEnabled(features::kPrefService) || | 386 return base::FeatureList::IsEnabled(features::kPrefService) || |
380 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 387 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
381 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 388 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
382 switches::kMusConfig) == switches::kMash; | 389 switches::kMusConfig) == switches::kMash; |
383 #else | 390 #else |
384 false; | 391 false; |
385 #endif | 392 #endif |
386 } | 393 } |
387 | 394 |
388 } // namespace features | 395 } // namespace features |
OLD | NEW |