Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: chrome/common/chrome_features.cc

Issue 2830983005: Remove old webui History page on desktop and mobile (Closed)
Patch Set: ifdef Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 return base::FeatureList::IsEnabled(features::kPrefService) || 338 return base::FeatureList::IsEnabled(features::kPrefService) ||
343 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 339 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
344 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 340 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
345 switches::kMusConfig) == switches::kMash; 341 switches::kMusConfig) == switches::kMash;
346 #else 342 #else
347 false; 343 false;
348 #endif 344 #endif
349 } 345 }
350 346
351 } // namespace features 347 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698