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