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

Unified Diff: ash/metrics/task_switch_metrics_recorder.cc

Issue 2257763002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/host/ash_window_tree_host_unified.cc ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/metrics/task_switch_metrics_recorder.cc
diff --git a/ash/metrics/task_switch_metrics_recorder.cc b/ash/metrics/task_switch_metrics_recorder.cc
index 2a29fe965c5423dfd9ea6dab2365da19e407ecfc..b636b157f957d95eaedbf63f276a46a58a882c04 100644
--- a/ash/metrics/task_switch_metrics_recorder.cc
+++ b/ash/metrics/task_switch_metrics_recorder.cc
@@ -93,9 +93,8 @@ void TaskSwitchMetricsRecorder::AddTaskSwitchTimeTracker(
const char* histogram_name = GetHistogramName(task_switch_source);
DCHECK(histogram_name);
- histogram_map_.add(
- static_cast<int>(task_switch_source),
- base::WrapUnique(new TaskSwitchTimeTracker(histogram_name)));
+ histogram_map_.add(static_cast<int>(task_switch_source),
+ base::MakeUnique<TaskSwitchTimeTracker>(histogram_name));
}
} // namespace ash
« no previous file with comments | « ash/host/ash_window_tree_host_unified.cc ('k') | ash/mus/bridge/wm_shell_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698