| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 // Enabled or disabled the Material Design version of chrome://extensions. | 181 // Enabled or disabled the Material Design version of chrome://extensions. |
| 182 const base::Feature kMaterialDesignExtensions{ | 182 const base::Feature kMaterialDesignExtensions{ |
| 183 "MaterialDesignExtensions", base::FEATURE_DISABLED_BY_DEFAULT}; | 183 "MaterialDesignExtensions", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 184 | 184 |
| 185 // Sets whether dismissing the new-tab-page override bubble counts as | 185 // Sets whether dismissing the new-tab-page override bubble counts as |
| 186 // acknowledgement. | 186 // acknowledgement. |
| 187 extern const base::Feature kAcknowledgeNtpOverrideOnDeactivate{ | 187 extern const base::Feature kAcknowledgeNtpOverrideOnDeactivate{ |
| 188 "AcknowledgeNtpOverrideOnDeactivate", base::FEATURE_DISABLED_BY_DEFAULT}; | 188 "AcknowledgeNtpOverrideOnDeactivate", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 189 #endif | 189 #endif |
| 190 | 190 |
| 191 // Enables or disables the Material Design version of chrome://history. | |
| 192 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory", | |
| 193 base::FEATURE_ENABLED_BY_DEFAULT}; | |
| 194 | |
| 195 // The material redesign of the Incognito NTP. | 191 // The material redesign of the Incognito NTP. |
| 196 const base::Feature kMaterialDesignIncognitoNTP{ | 192 const base::Feature kMaterialDesignIncognitoNTP{ |
| 197 "MaterialDesignIncognitoNTP", base::FEATURE_DISABLED_BY_DEFAULT}; | 193 "MaterialDesignIncognitoNTP", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 198 | 194 |
| 199 // Enables or disables the Material Design version of chrome://settings. | 195 // Enables or disables the Material Design version of chrome://settings. |
| 200 // Also affects chrome://help. | 196 // Also affects chrome://help. |
| 201 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", | 197 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", |
| 202 base::FEATURE_ENABLED_BY_DEFAULT}; | 198 base::FEATURE_ENABLED_BY_DEFAULT}; |
| 203 | 199 |
| 204 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 200 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 return base::FeatureList::IsEnabled(features::kPrefService) || | 341 return base::FeatureList::IsEnabled(features::kPrefService) || |
| 346 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 342 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
| 347 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 343 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
| 348 switches::kMusConfig) == switches::kMash; | 344 switches::kMusConfig) == switches::kMash; |
| 349 #else | 345 #else |
| 350 false; | 346 false; |
| 351 #endif | 347 #endif |
| 352 } | 348 } |
| 353 | 349 |
| 354 } // namespace features | 350 } // namespace features |
| OLD | NEW |