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

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

Issue 2823523003: [Page Load Metrics] PageLoadMetrics Mojofication. (Closed)
Patch Set: Addressed comments, remove unnecessary RunUntilIdle, call OnTimingUpdated directly in unit tests 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 335 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
336 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 336 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
337 base::FEATURE_ENABLED_BY_DEFAULT}; 337 base::FEATURE_ENABLED_BY_DEFAULT};
338 338
339 // Enables or disables flash component updates on Chrome OS. 339 // Enables or disables flash component updates on Chrome OS.
340 const base::Feature kCrosCompUpdates{"CrosCompUpdates", 340 const base::Feature kCrosCompUpdates{"CrosCompUpdates",
341 base::FEATURE_ENABLED_BY_DEFAULT}; 341 base::FEATURE_ENABLED_BY_DEFAULT};
342 #endif // defined(OS_CHROMEOS) 342 #endif // defined(OS_CHROMEOS)
343 343
344 // Enables or disables Page Load Metrics using mojo IPC.
345 const base::Feature kPageLoadMetricsMojofication{
346 "PLMMojofication", base::FEATURE_DISABLED_BY_DEFAULT};
347
344 bool PrefServiceEnabled() { 348 bool PrefServiceEnabled() {
345 return base::FeatureList::IsEnabled(features::kPrefService) || 349 return base::FeatureList::IsEnabled(features::kPrefService) ||
346 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 350 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
347 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 351 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
348 switches::kMusConfig) == switches::kMash; 352 switches::kMusConfig) == switches::kMash;
349 #else 353 #else
350 false; 354 false;
351 #endif 355 #endif
352 } 356 }
353 357
354 } // namespace features 358 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698