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

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

Issue 2823523003: [Page Load Metrics] PageLoadMetrics Mojofication. (Closed)
Patch Set: rebase 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
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/page_load_metrics/OWNERS » ('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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 369
370 // Enables or disables flash component updates on Chrome OS. 370 // Enables or disables flash component updates on Chrome OS.
371 const base::Feature kCrosCompUpdates{"CrosCompUpdates", 371 const base::Feature kCrosCompUpdates{"CrosCompUpdates",
372 base::FEATURE_ENABLED_BY_DEFAULT}; 372 base::FEATURE_ENABLED_BY_DEFAULT};
373 373
374 // Enables or disables Chrome OS Component updates on Chrome OS. 374 // Enables or disables Chrome OS Component updates on Chrome OS.
375 const base::Feature kCrOSComponent{"CrOSComponent", 375 const base::Feature kCrOSComponent{"CrOSComponent",
376 base::FEATURE_DISABLED_BY_DEFAULT}; 376 base::FEATURE_DISABLED_BY_DEFAULT};
377 #endif // defined(OS_CHROMEOS) 377 #endif // defined(OS_CHROMEOS)
378 378
379 // Enables or disables Page Load Metrics using mojo IPC.
380 const base::Feature kPageLoadMetricsMojofication{
381 "PLMMojofication", base::FEATURE_DISABLED_BY_DEFAULT};
382
379 bool PrefServiceEnabled() { 383 bool PrefServiceEnabled() {
380 return base::FeatureList::IsEnabled(features::kPrefService) || 384 return base::FeatureList::IsEnabled(features::kPrefService) ||
381 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 385 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
382 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 386 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
383 switches::kMusConfig) == switches::kMash; 387 switches::kMusConfig) == switches::kMash;
384 #else 388 #else
385 false; 389 false;
386 #endif 390 #endif
387 } 391 }
388 392
389 } // namespace features 393 } // namespace features
OLDNEW
« no previous file with comments | « chrome/common/chrome_features.h ('k') | chrome/common/page_load_metrics/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698