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

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

Issue 2876153002: Support Using ScopedFeatureList in BrowserTest (Closed)
Patch Set: leave tests and changes in test_suites to following patch Created 3 years, 5 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
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/test/base/in_process_browser_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) 254 #if BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS)
255 #if defined(OS_MACOSX) || defined(OS_ANDROID) 255 #if defined(OS_MACOSX) || defined(OS_ANDROID)
256 const base::Feature kNativeNotifications{"NativeNotifications", 256 const base::Feature kNativeNotifications{"NativeNotifications",
257 base::FEATURE_ENABLED_BY_DEFAULT}; 257 base::FEATURE_ENABLED_BY_DEFAULT};
258 #else 258 #else
259 const base::Feature kNativeNotifications{"NativeNotifications", 259 const base::Feature kNativeNotifications{"NativeNotifications",
260 base::FEATURE_DISABLED_BY_DEFAULT}; 260 base::FEATURE_DISABLED_BY_DEFAULT};
261 #endif 261 #endif
262 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS) 262 #endif // BUILDFLAG(ENABLE_NATIVE_NOTIFICATIONS)
263 263
264 const base::Feature kNetworkPrediction{"NetworkPrediction",
265 base::FEATURE_ENABLED_BY_DEFAULT};
266
264 // If enabled, the list of content suggestions on the New Tab page will contain 267 // If enabled, the list of content suggestions on the New Tab page will contain
265 // pages that the user downloaded for later use. 268 // pages that the user downloaded for later use.
266 const base::Feature kOfflinePageDownloadSuggestionsFeature{ 269 const base::Feature kOfflinePageDownloadSuggestionsFeature{
267 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT}; 270 "NTPOfflinePageDownloadSuggestions", base::FEATURE_ENABLED_BY_DEFAULT};
268 271
269 #if !defined(OS_ANDROID) 272 #if !defined(OS_ANDROID)
270 // Enables or disabled the OneGoogleBar on the local NTP. 273 // Enables or disabled the OneGoogleBar on the local NTP.
271 const base::Feature kOneGoogleBarOnLocalNtp{"OneGoogleBarOnLocalNtp", 274 const base::Feature kOneGoogleBarOnLocalNtp{"OneGoogleBarOnLocalNtp",
272 base::FEATURE_DISABLED_BY_DEFAULT}; 275 base::FEATURE_DISABLED_BY_DEFAULT};
273 #endif 276 #endif
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 return base::FeatureList::IsEnabled(features::kPrefService) || 413 return base::FeatureList::IsEnabled(features::kPrefService) ||
411 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 414 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
412 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 415 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
413 switches::kMusConfig) == switches::kMash; 416 switches::kMusConfig) == switches::kMash;
414 #else 417 #else
415 false; 418 false;
416 #endif 419 #endif
417 } 420 }
418 421
419 } // namespace features 422 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/test/base/in_process_browser_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698