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

Side by Side Diff: chrome/browser/field_trial_recorder.cc

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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/browser/field_trial_recorder.h" 5 #include "chrome/browser/field_trial_recorder.h"
6 6
7 #include "base/memory/ptr_util.h"
7 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
8 #include "mojo/public/cpp/bindings/strong_binding.h" 9 #include "mojo/public/cpp/bindings/strong_binding.h"
9 10
10 FieldTrialRecorder::FieldTrialRecorder() = default; 11 FieldTrialRecorder::FieldTrialRecorder() = default;
11 12
12 FieldTrialRecorder::~FieldTrialRecorder() = default; 13 FieldTrialRecorder::~FieldTrialRecorder() = default;
13 14
14 // static 15 // static
15 void FieldTrialRecorder::Create( 16 void FieldTrialRecorder::Create(
16 chrome::mojom::FieldTrialRecorderRequest request) { 17 chrome::mojom::FieldTrialRecorderRequest request) {
17 mojo::MakeStrongBinding(base::MakeUnique<FieldTrialRecorder>(), 18 mojo::MakeStrongBinding(base::MakeUnique<FieldTrialRecorder>(),
18 std::move(request)); 19 std::move(request));
19 } 20 }
20 21
21 void FieldTrialRecorder::FieldTrialActivated(const std::string& trial_name) { 22 void FieldTrialRecorder::FieldTrialActivated(const std::string& trial_name) {
22 DCHECK(thread_checker_.CalledOnValidThread()); 23 DCHECK(thread_checker_.CalledOnValidThread());
23 // Activate the trial in the browser process to match its state in the 24 // Activate the trial in the browser process to match its state in the
24 // renderer. This is done by calling FindFullName which finalizes the group 25 // renderer. This is done by calling FindFullName which finalizes the group
25 // and activates the trial. 26 // and activates the trial.
26 base::FieldTrialList::FindFullName(trial_name); 27 base::FieldTrialList::FindFullName(trial_name);
27 } 28 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/tab_helper.cc ('k') | chrome/browser/history/android/sqlite_cursor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698