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

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

Issue 2931023002: [TooManyTabs] Add TabNavigationThrottle (Closed)
Patch Set: review fix Created 3 years, 6 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 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // A new user experience for transitioning into fullscreen and mouse pointer 308 // A new user experience for transitioning into fullscreen and mouse pointer
309 // lock states. 309 // lock states.
310 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI", 310 const base::Feature kSimplifiedFullscreenUI{"ViewsSimplifiedFullscreenUI",
311 base::FEATURE_ENABLED_BY_DEFAULT}; 311 base::FEATURE_ENABLED_BY_DEFAULT};
312 312
313 // Enables or disables UI in MD Settings to view content settings grouped by 313 // Enables or disables UI in MD Settings to view content settings grouped by
314 // origin. 314 // origin.
315 const base::Feature kSiteDetails{"SiteDetails", 315 const base::Feature kSiteDetails{"SiteDetails",
316 base::FEATURE_DISABLED_BY_DEFAULT}; 316 base::FEATURE_DISABLED_BY_DEFAULT};
317 317
318 // Enables delaying background tabs' opening process in order to improve
319 // foreground tab's user experience.
320 const base::Feature kStaggeredBackgroundTabOpen{
321 "StaggeredBackgroundTabOpen", base::FEATURE_DISABLED_BY_DEFAULT};
322
318 #if defined(SYZYASAN) 323 #if defined(SYZYASAN)
319 // Enable the deferred free mechanism in the syzyasan module, which helps the 324 // Enable the deferred free mechanism in the syzyasan module, which helps the
320 // performance by deferring some work on the critical path to a background 325 // performance by deferring some work on the critical path to a background
321 // thread. 326 // thread.
322 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree", 327 const base::Feature kSyzyasanDeferredFree{"SyzyasanDeferredFree",
323 base::FEATURE_ENABLED_BY_DEFAULT}; 328 base::FEATURE_ENABLED_BY_DEFAULT};
324 #endif 329 #endif
325 330
326 // Enables using the local NTP if Google is the default search engine. 331 // Enables using the local NTP if Google is the default search engine.
327 const base::Feature kUseGoogleLocalNtp{"UseGoogleLocalNtp", 332 const base::Feature kUseGoogleLocalNtp{"UseGoogleLocalNtp",
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 return base::FeatureList::IsEnabled(features::kPrefService) || 384 return base::FeatureList::IsEnabled(features::kPrefService) ||
380 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 385 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
381 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 386 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
382 switches::kMusConfig) == switches::kMash; 387 switches::kMusConfig) == switches::kMash;
383 #else 388 #else
384 false; 389 false;
385 #endif 390 #endif
386 } 391 }
387 392
388 } // namespace features 393 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698