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

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

Issue 2823523003: [Page Load Metrics] PageLoadMetrics Mojofication. (Closed)
Patch Set: Add Finch trial check and rebase 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 321
322 // Enables or disables emoji, handwriting and voice input on opt-in IME menu. 322 // Enables or disables emoji, handwriting and voice input on opt-in IME menu.
323 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput", 323 const base::Feature kEHVInputOnImeMenu{"EmojiHandwritingVoiceInput",
324 base::FEATURE_ENABLED_BY_DEFAULT}; 324 base::FEATURE_ENABLED_BY_DEFAULT};
325 325
326 // Enables or disables flash component updates on Chrome OS. 326 // Enables or disables flash component updates on Chrome OS.
327 const base::Feature kCrosCompUpdates{"CrosCompUpdates", 327 const base::Feature kCrosCompUpdates{"CrosCompUpdates",
328 base::FEATURE_ENABLED_BY_DEFAULT}; 328 base::FEATURE_ENABLED_BY_DEFAULT};
329 #endif // defined(OS_CHROMEOS) 329 #endif // defined(OS_CHROMEOS)
330 330
331 // Enables or disables Page Load Metrics using mojo IPC.
332 const base::Feature kPageLoadMetricsMojofication{
333 "PLMMojofication", base::FEATURE_DISABLED_BY_DEFAULT};
334
331 bool PrefServiceEnabled() { 335 bool PrefServiceEnabled() {
332 return base::FeatureList::IsEnabled(features::kPrefService) || 336 return base::FeatureList::IsEnabled(features::kPrefService) ||
333 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES) 337 #if BUILDFLAG(ENABLE_PACKAGE_MASH_SERVICES)
334 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII( 338 base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
335 switches::kMusConfig) == switches::kMash; 339 switches::kMusConfig) == switches::kMash;
336 #else 340 #else
337 false; 341 false;
338 #endif 342 #endif
339 } 343 }
340 344
341 } // namespace features 345 } // namespace features
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698