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

Unified Diff: ui/events/test/event_generator.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/events/platform/x11/x11_event_source_libevent.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/test/event_generator.cc
diff --git a/ui/events/test/event_generator.cc b/ui/events/test/event_generator.cc
index ddfdeea55d667ca669f4c4aadfb8e40da39e44b8..8960e5b71d504b55c29f849770f2dadae9eddfd1 100644
--- a/ui/events/test/event_generator.cc
+++ b/ui/events/test/event_generator.cc
@@ -543,7 +543,7 @@ void EventGenerator::Dispatch(ui::Event* event) {
void EventGenerator::Init(gfx::NativeWindow root_window,
gfx::NativeWindow window_context) {
- ui::SetEventTickClockForTesting(WrapUnique(new TestTickClock()));
+ ui::SetEventTickClockForTesting(base::MakeUnique<TestTickClock>());
delegate()->SetContext(this, root_window, window_context);
if (window_context)
current_location_ = delegate()->CenterOfWindow(window_context);
« no previous file with comments | « ui/events/platform/x11/x11_event_source_libevent.cc ('k') | ui/events/test/test_event_target.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698