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