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