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

Side by Side Diff: components/startup_metric_utils/common/pre_read_field_trial_utils_win.cc

Issue 1591663003: Move pre_read_field_trial_utils.h/cc to common/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/startup_metric_utils/browser/pre_read_field_trial_utils_win .h" 5 #include "components/startup_metric_utils/common/pre_read_field_trial_utils_win. h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/win/registry.h" 12 #include "base/win/registry.h"
13 #include "components/variations/variations_associated_data.h" 13 #include "components/variations/variations_associated_data.h"
14 14
15 namespace startup_metric_utils { 15 namespace startup_metric_utils {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 base::string16 group; 137 base::string16 group;
138 key.ReadValue(L"", &group); 138 key.ReadValue(L"", &group);
139 139
140 if (!group.empty()) { 140 if (!group.empty()) {
141 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName, 141 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName,
142 base::UTF16ToUTF8(group)); 142 base::UTF16ToUTF8(group));
143 } 143 }
144 } 144 }
145 145
146 } // namespace startup_metric_utils 146 } // namespace startup_metric_utils
OLDNEW
« chrome/app/DEPS ('K') | « components/startup_metric_utils/common/pre_read_field_trial_utils_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698