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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 const base::Feature kGdiTextPrinting {"GdiTextPrinting", | 147 const base::Feature kGdiTextPrinting {"GdiTextPrinting", |
148 base::FEATURE_DISABLED_BY_DEFAULT}; | 148 base::FEATURE_DISABLED_BY_DEFAULT}; |
149 #endif | 149 #endif |
150 | 150 |
151 #if defined (OS_CHROMEOS) | 151 #if defined (OS_CHROMEOS) |
152 // Enables or disables the Happiness Tracking System for the device. | 152 // Enables or disables the Happiness Tracking System for the device. |
153 const base::Feature kHappinessTrackingSystem { | 153 const base::Feature kHappinessTrackingSystem { |
154 "HappinessTrackingSystem", base::FEATURE_DISABLED_BY_DEFAULT}; | 154 "HappinessTrackingSystem", base::FEATURE_DISABLED_BY_DEFAULT}; |
155 #endif | 155 #endif |
156 | 156 |
| 157 const base::Feature kImportantSitesInCbd{"ImportantSitesInCBD", |
| 158 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 159 |
157 // Controls whether the "improved recovery component" is used. The improved | 160 // Controls whether the "improved recovery component" is used. The improved |
158 // recovery component is a redesigned Chrome component intended to restore | 161 // recovery component is a redesigned Chrome component intended to restore |
159 // a broken Chrome updater in more scenarios than before. | 162 // a broken Chrome updater in more scenarios than before. |
160 const base::Feature kImprovedRecoveryComponent{ | 163 const base::Feature kImprovedRecoveryComponent{ |
161 "ImprovedRecoveryComponent", base::FEATURE_DISABLED_BY_DEFAULT}; | 164 "ImprovedRecoveryComponent", base::FEATURE_DISABLED_BY_DEFAULT}; |
162 | 165 |
163 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) | 166 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) |
164 // Enables showing the "This computer will no longer receive Google Chrome | 167 // Enables showing the "This computer will no longer receive Google Chrome |
165 // updates" infobar instead of the "will soon stop receiving" infobar on | 168 // updates" infobar instead of the "will soon stop receiving" infobar on |
166 // deprecated systems. | 169 // deprecated systems. |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 return base::FeatureList::IsEnabled(features::kPrefService) || | 339 return base::FeatureList::IsEnabled(features::kPrefService) || |
337 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 340 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
338 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 341 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
339 switches::kMusConfig) == switches::kMash; | 342 switches::kMusConfig) == switches::kMash; |
340 #else | 343 #else |
341 false; | 344 false; |
342 #endif | 345 #endif |
343 } | 346 } |
344 | 347 |
345 } // namespace features | 348 } // namespace features |
OLD | NEW |