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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // Sets whether dismissing the new-tab-page override bubble counts as | 179 // Sets whether dismissing the new-tab-page override bubble counts as |
180 // acknowledgement. | 180 // acknowledgement. |
181 extern const base::Feature kAcknowledgeNtpOverrideOnDeactivate{ | 181 extern const base::Feature kAcknowledgeNtpOverrideOnDeactivate{ |
182 "AcknowledgeNtpOverrideOnDeactivate", base::FEATURE_DISABLED_BY_DEFAULT}; | 182 "AcknowledgeNtpOverrideOnDeactivate", base::FEATURE_DISABLED_BY_DEFAULT}; |
183 #endif | 183 #endif |
184 | 184 |
185 // Enables or disables the Material Design version of chrome://history. | 185 // Enables or disables the Material Design version of chrome://history. |
186 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory", | 186 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory", |
187 base::FEATURE_ENABLED_BY_DEFAULT}; | 187 base::FEATURE_ENABLED_BY_DEFAULT}; |
188 | 188 |
| 189 // The material redesign of the Incognito NTP. |
| 190 const base::Feature kMaterialDesignIncognitoNTP{ |
| 191 "MaterialDesignIncognitoNTP", base::FEATURE_DISABLED_BY_DEFAULT}; |
| 192 |
189 // Enables or disables the Material Design version of chrome://settings. | 193 // Enables or disables the Material Design version of chrome://settings. |
190 // Also affects chrome://help. | 194 // Also affects chrome://help. |
191 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", | 195 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", |
192 base::FEATURE_ENABLED_BY_DEFAULT}; | 196 base::FEATURE_ENABLED_BY_DEFAULT}; |
193 | 197 |
194 #if !defined(OS_ANDROID) && !defined(OS_IOS) | 198 #if !defined(OS_ANDROID) && !defined(OS_IOS) |
195 // Enables media content bitstream remoting, an optimization that can activate | 199 // Enables media content bitstream remoting, an optimization that can activate |
196 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the | 200 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the |
197 // feature will not activate for encrypted content. | 201 // feature will not activate for encrypted content. |
198 const base::Feature kMediaRemoting{"MediaRemoting", | 202 const base::Feature kMediaRemoting{"MediaRemoting", |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 return base::FeatureList::IsEnabled(features::kPrefService) || | 330 return base::FeatureList::IsEnabled(features::kPrefService) || |
327 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) | 331 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) |
328 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( | 332 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
329 switches::kMusConfig) == switches::kMash; | 333 switches::kMusConfig) == switches::kMash; |
330 #else | 334 #else |
331 false; | 335 false; |
332 #endif | 336 #endif |
333 } | 337 } |
334 | 338 |
335 } // namespace features | 339 } // namespace features |
OLD | NEW |