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

Unified Diff: services/ui/ws/window_tree.cc

Issue 2259823003: 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 | « services/ui/ws/modal_window_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/ws/window_tree.cc
diff --git a/services/ui/ws/window_tree.cc b/services/ui/ws/window_tree.cc
index f7e0fdaa52d35bc8ad7d4c32e5007543e2e1b1c2..93837145d338d14aaf0a1e3bbf81108a12c49420 100644
--- a/services/ui/ws/window_tree.cc
+++ b/services/ui/ws/window_tree.cc
@@ -394,7 +394,7 @@ void WindowTree::DispatchInputEvent(ServerWindow* target,
const ui::Event& event) {
if (event_ack_id_) {
// This is currently waiting for an event ack. Add it to the queue.
- event_queue_.push(base::WrapUnique(new TargetedEvent(target, event)));
+ event_queue_.push(base::MakeUnique<TargetedEvent>(target, event));
// TODO(sad): If the |event_queue_| grows too large, then this should notify
// Display, so that it can stop sending events.
return;
@@ -404,7 +404,7 @@ void WindowTree::DispatchInputEvent(ServerWindow* target,
// and dispatch the latest event from the queue instead that still has a live
// target.
if (!event_queue_.empty()) {
- event_queue_.push(base::WrapUnique(new TargetedEvent(target, event)));
+ event_queue_.push(base::MakeUnique<TargetedEvent>(target, event));
return;
}
« no previous file with comments | « services/ui/ws/modal_window_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698