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

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

Issue 2804823002: Revamp the Incognito NTP on Desktop (Closed)
Patch Set: Addressed comments. Created 3 years, 8 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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 191 // Enables or disables the Material Design version of chrome://history.
192 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory", 192 const base::Feature kMaterialDesignHistory{"MaterialDesignHistory",
193 base::FEATURE_ENABLED_BY_DEFAULT}; 193 base::FEATURE_ENABLED_BY_DEFAULT};
194 194
195 // The material redesign of the Incognito NTP.
196 const base::Feature kMaterialDesignIncognitoNTP{
197 "MaterialDesignIncognitoNTP", base::FEATURE_DISABLED_BY_DEFAULT};
198
195 // Enables or disables the Material Design version of chrome://settings. 199 // Enables or disables the Material Design version of chrome://settings.
196 // Also affects chrome://help. 200 // Also affects chrome://help.
197 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings", 201 const base::Feature kMaterialDesignSettings{"MaterialDesignSettings",
198 base::FEATURE_ENABLED_BY_DEFAULT}; 202 base::FEATURE_ENABLED_BY_DEFAULT};
199 203
200 #if !defined(OS_ANDROID) && !defined(OS_IOS) 204 #if !defined(OS_ANDROID) && !defined(OS_IOS)
201 // Enables media content bitstream remoting, an optimization that can activate 205 // Enables media content bitstream remoting, an optimization that can activate
202 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the 206 // during Cast Tab Mirroring. When kMediaRemotingEncrypted is disabled, the
203 // feature will not activate for encrypted content. 207 // feature will not activate for encrypted content.
204 const base::Feature kMediaRemoting{"MediaRemoting", 208 const base::Feature kMediaRemoting{"MediaRemoting",
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 return base::FeatureList::IsEnabled(features::kPrefService) || 340 return base::FeatureList::IsEnabled(features::kPrefService) ||
337 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 341 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
338 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 342 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
339 switches::kMusConfig) == switches::kMash; 343 switches::kMusConfig) == switches::kMash;
340 #else 344 #else
341 false; 345 false;
342 #endif 346 #endif
343 } 347 }
344 348
345 } // namespace features 349 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698