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

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

Issue 1921923002: Convert //components/[o-t]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 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 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/common/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/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
11 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
13 #include "base/win/registry.h" 12 #include "base/win/registry.h"
14 #include "components/variations/variations_associated_data.h" 13 #include "components/variations/variations_associated_data.h"
15 14
16 namespace startup_metric_utils { 15 namespace startup_metric_utils {
17 16
18 namespace { 17 namespace {
19 18
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 base::string16 group; 145 base::string16 group;
147 key.ReadValue(L"", &group); 146 key.ReadValue(L"", &group);
148 147
149 if (!group.empty()) { 148 if (!group.empty()) {
150 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName, 149 register_synthetic_field_trial.Run(kPreReadSyntheticFieldTrialName,
151 base::UTF16ToUTF8(group)); 150 base::UTF16ToUTF8(group));
152 } 151 }
153 } 152 }
154 153
155 } // namespace startup_metric_utils 154 } // namespace startup_metric_utils
OLDNEW
« no previous file with comments | « components/startup_metric_utils/browser/startup_metric_utils.cc ('k') | components/sync_bookmarks/bookmark_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698