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

Side by Side Diff: components/metrics/metrics_service_accessor.cc

Issue 1530133005: Refactor VariationsHttpHeaderProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing include to srt_fetcher_win.cc. Created 5 years 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 | « components/metrics/metrics_service.cc ('k') | components/metrics/metrics_service_unittest.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/metrics/metrics_service_accessor.h" 5 #include "components/metrics/metrics_service_accessor.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/prefs/pref_service.h" 9 #include "base/prefs/pref_service.h"
10 #include "components/metrics/metrics_pref_names.h" 10 #include "components/metrics/metrics_pref_names.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 } 55 }
56 56
57 // static 57 // static
58 bool MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameAndGroupHash( 58 bool MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameAndGroupHash(
59 MetricsService* metrics_service, 59 MetricsService* metrics_service,
60 uint32_t trial_name_hash, 60 uint32_t trial_name_hash,
61 uint32_t group_name_hash) { 61 uint32_t group_name_hash) {
62 if (!metrics_service) 62 if (!metrics_service)
63 return false; 63 return false;
64 64
65 SyntheticTrialGroup trial_group(trial_name_hash, group_name_hash); 65 variations::SyntheticTrialGroup trial_group(trial_name_hash, group_name_hash);
66 metrics_service->RegisterSyntheticFieldTrial(trial_group); 66 metrics_service->RegisterSyntheticFieldTrial(trial_group);
67 return true; 67 return true;
68 } 68 }
69 69
70 } // namespace metrics 70 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/metrics_service.cc ('k') | components/metrics/metrics_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698