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

Unified Diff: ui/views/view.cc

Issue 2259753003: 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 | « ui/views/test/combobox_test_api.cc ('k') | ui/wm/core/focus_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index e6d51dd2cc56b693ab36adcce0041bb033c29352..7c1a380d226fa8e8e34f517e8a5f9b27a4decad2 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -1097,7 +1097,7 @@ ui::EventTarget* View::GetParentTarget() {
}
std::unique_ptr<ui::EventTargetIterator> View::GetChildIterator() const {
- return base::WrapUnique(new ui::EventTargetIteratorImpl<View>(children_));
+ return base::MakeUnique<ui::EventTargetIteratorImpl<View>>(children_);
}
ui::EventTargeter* View::GetEventTargeter() {
« no previous file with comments | « ui/views/test/combobox_test_api.cc ('k') | ui/wm/core/focus_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698