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

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

Issue 2948323002: [PageLoadMetrics] Remove legacy IPC from Page Load Metrics. (Closed)
Patch Set: Clean up OWNERS 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
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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 // Enables or disables Chrome OS Component updates on Chrome OS. 372 // Enables or disables Chrome OS Component updates on Chrome OS.
373 const base::Feature kCrOSComponent{"CrOSComponent", 373 const base::Feature kCrOSComponent{"CrOSComponent",
374 base::FEATURE_DISABLED_BY_DEFAULT}; 374 base::FEATURE_DISABLED_BY_DEFAULT};
375 375
376 // Enables or disables Instant Tethering on Chrome OS. 376 // Enables or disables Instant Tethering on Chrome OS.
377 const base::Feature kInstantTethering{"InstantTethering", 377 const base::Feature kInstantTethering{"InstantTethering",
378 base::FEATURE_DISABLED_BY_DEFAULT}; 378 base::FEATURE_DISABLED_BY_DEFAULT};
379 #endif // defined(OS_CHROMEOS) 379 #endif // defined(OS_CHROMEOS)
380 380
381 // Enables or disables Page Load Metrics using mojo IPC.
382 const base::Feature kPageLoadMetricsMojofication{
383 "PLMMojofication", base::FEATURE_DISABLED_BY_DEFAULT};
384
385 bool PrefServiceEnabled() { 381 bool PrefServiceEnabled() {
386 return base::FeatureList::IsEnabled(features::kPrefService) || 382 return base::FeatureList::IsEnabled(features::kPrefService) ||
387 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 383 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
388 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 384 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
389 switches::kMusConfig) == switches::kMash; 385 switches::kMusConfig) == switches::kMash;
390 #else 386 #else
391 false; 387 false;
392 #endif 388 #endif
393 } 389 }
394 390
395 } // namespace features 391 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698