| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Whether to capture page thumbnails when the page load finishes (in addition | 104 // Whether to capture page thumbnails when the page load finishes (in addition |
| 105 // to any other times this might happen). | 105 // to any other times this might happen). |
| 106 const base::Feature kCaptureThumbnailOnLoadFinished{ | 106 const base::Feature kCaptureThumbnailOnLoadFinished{ |
| 107 "CaptureThumbnailOnLoadFinished", base::FEATURE_DISABLED_BY_DEFAULT}; | 107 "CaptureThumbnailOnLoadFinished", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 108 | 108 |
| 109 // Whether to trigger app banner installability checks on page load. | 109 // Whether to trigger app banner installability checks on page load. |
| 110 const base::Feature kCheckInstallabilityForBannerOnLoad{ | 110 const base::Feature kCheckInstallabilityForBannerOnLoad{ |
| 111 "CheckInstallabilityForBannerOnLoad", base::FEATURE_DISABLED_BY_DEFAULT}; | 111 "CheckInstallabilityForBannerOnLoad", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 112 | 112 |
| 113 const base::Feature kClickToOpenPDFPlaceholder{ |
| 114 "ClickToOpenPDFPlaceholder", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 115 |
| 113 #if defined(OS_ANDROID) | 116 #if defined(OS_ANDROID) |
| 114 // Experiment to make Geolocation permissions in the omnibox and the default | 117 // Experiment to make Geolocation permissions in the omnibox and the default |
| 115 // search engine's search page consistent. | 118 // search engine's search page consistent. |
| 116 const base::Feature kConsistentOmniboxGeolocation{ | 119 const base::Feature kConsistentOmniboxGeolocation{ |
| 117 "ConsistentOmniboxGeolocation", base::FEATURE_ENABLED_BY_DEFAULT}; | 120 "ConsistentOmniboxGeolocation", base::FEATURE_ENABLED_BY_DEFAULT}; |
| 118 #endif | 121 #endif |
| 119 | 122 |
| 120 #if defined(OS_ANDROID) | 123 #if defined(OS_ANDROID) |
| 121 // Experiment to extract structured metadata for app indexing. | 124 // Experiment to extract structured metadata for app indexing. |
| 122 const base::Feature kCopylessPaste{"CopylessPaste", | 125 const base::Feature kCopylessPaste{"CopylessPaste", |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 return base::FeatureList::IsEnabled(features::kPrefService) || | 397 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 395 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 398 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 396 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 399 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 397 switches::kMusConfig) == switches::kMash; | 400 switches::kMusConfig) == switches::kMash; |
| 398 #else | 401 #else |
| 399 false; | 402 false; |
| 400 #endif | 403 #endif |
| 401 } | 404 } |
| 402 | 405 |
| 403 } // namespace features | 406 } // namespace features |
| OLD | NEW |