| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 #if defined(OS_MACOSX) | 78 #if defined(OS_MACOSX) |
| 79 // Enables or disables the browser's touch bar. | 79 // Enables or disables the browser's touch bar. |
| 80 const base::Feature kBrowserTouchBar{"BrowserTouchBar", | 80 const base::Feature kBrowserTouchBar{"BrowserTouchBar", |
| 81 base::FEATURE_ENABLED_BY_DEFAULT}; | 81 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 82 | 82 |
| 83 // Enables or disables keyboard focus for the tab strip. | 83 // Enables or disables keyboard focus for the tab strip. |
| 84 const base::Feature kTabStripKeyboardFocus{"TabStripKeyboardFocus", | 84 const base::Feature kTabStripKeyboardFocus{"TabStripKeyboardFocus", |
| 85 base::FEATURE_DISABLED_BY_DEFAULT}; | 85 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 86 #endif // defined(OS_MACOSX) | 86 #endif // defined(OS_MACOSX) |
| 87 | 87 |
| 88 const base::Feature kTabsInCbd{"TabsInCBD", base::FEATURE_DISABLED_BY_DEFAULT}; | 88 const base::Feature kTabsInCbd { |
| 89 "TabsInCBD", |
| 90 #if defined(OS_ANDROID) |
| 91 base::FEATURE_ENABLED_BY_DEFAULT |
| 92 #else |
| 93 base::FEATURE_DISABLED_BY_DEFAULT |
| 94 #endif |
| 95 }; |
| 89 | 96 |
| 90 // Whether to capture page thumbnails when the page load finishes (in addition | 97 // Whether to capture page thumbnails when the page load finishes (in addition |
| 91 // to any other times this might happen). | 98 // to any other times this might happen). |
| 92 const base::Feature kCaptureThumbnailOnLoadFinished{ | 99 const base::Feature kCaptureThumbnailOnLoadFinished{ |
| 93 "CaptureThumbnailOnLoadFinished", base::FEATURE_DISABLED_BY_DEFAULT}; | 100 "CaptureThumbnailOnLoadFinished", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 94 | 101 |
| 95 // Whether to trigger app banner installability checks on page load. | 102 // Whether to trigger app banner installability checks on page load. |
| 96 const base::Feature kCheckInstallabilityForBannerOnLoad{ | 103 const base::Feature kCheckInstallabilityForBannerOnLoad{ |
| 97 "CheckInstallabilityForBannerOnLoad", base::FEATURE_DISABLED_BY_DEFAULT}; | 104 "CheckInstallabilityForBannerOnLoad", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 98 | 105 |
| (...skipping 279 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 |