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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 const base::Feature kGdiTextPrinting {"GdiTextPrinting", | 154 const base::Feature kGdiTextPrinting {"GdiTextPrinting", |
155 base::FEATURE_DISABLED_BY_DEFAULT}; | 155 base::FEATURE_DISABLED_BY_DEFAULT}; |
156 #endif | 156 #endif |
157 | 157 |
158 #if defined (OS_CHROMEOS) | 158 #if defined (OS_CHROMEOS) |
159 // Enables or disables the Happiness Tracking System for the device. | 159 // Enables or disables the Happiness Tracking System for the device. |
160 const base::Feature kHappinessTrackingSystem { | 160 const base::Feature kHappinessTrackingSystem { |
161 "HappinessTrackingSystem", base::FEATURE_DISABLED_BY_DEFAULT}; | 161 "HappinessTrackingSystem", base::FEATURE_DISABLED_BY_DEFAULT}; |
162 #endif | 162 #endif |
163 | 163 |
| 164 const base::Feature kImportantSitesInCbd{"ImportantSitesInCBD", |
| 165 base::FEATURE_DISABLED_BY_DEFAULT}; |
| 166 |
164 // Controls whether the "improved recovery component" is used. The improved | 167 // Controls whether the "improved recovery component" is used. The improved |
165 // recovery component is a redesigned Chrome component intended to restore | 168 // recovery component is a redesigned Chrome component intended to restore |
166 // a broken Chrome updater in more scenarios than before. | 169 // a broken Chrome updater in more scenarios than before. |
167 const base::Feature kImprovedRecoveryComponent{ | 170 const base::Feature kImprovedRecoveryComponent{ |
168 "ImprovedRecoveryComponent", base::FEATURE_DISABLED_BY_DEFAULT}; | 171 "ImprovedRecoveryComponent", base::FEATURE_DISABLED_BY_DEFAULT}; |
169 | 172 |
170 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) | 173 #if defined(GOOGLE_CHROME_BUILD) && defined(OS_LINUX) && !defined(OS_CHROMEOS) |
171 // Enables showing the "This computer will no longer receive Google Chrome | 174 // Enables showing the "This computer will no longer receive Google Chrome |
172 // updates" infobar instead of the "will soon stop receiving" infobar on | 175 // updates" infobar instead of the "will soon stop receiving" infobar on |
173 // deprecated systems. | 176 // deprecated systems. |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 return base::FeatureList::IsEnabled(features::kPrefService) || | 380 return base::FeatureList::IsEnabled(features::kPrefService) || |
378 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 381 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
379 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 382 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
380 switches::kMusConfig) == switches::kMash; | 383 switches::kMusConfig) == switches::kMash; |
381 #else | 384 #else |
382 false; | 385 false; |
383 #endif | 386 #endif |
384 } | 387 } |
385 | 388 |
386 } // namespace features | 389 } // namespace features |
OLD | NEW |