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

Unified Diff: ui/events/platform/platform_event_source.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
Index: ui/events/platform/platform_event_source.cc
diff --git a/ui/events/platform/platform_event_source.cc b/ui/events/platform/platform_event_source.cc
index e274971c6ae2a8bfc6ffe9850cf9d3236211d384..a33562693abce3b5516a70848e7b9faa77316afa 100644
--- a/ui/events/platform/platform_event_source.cc
+++ b/ui/events/platform/platform_event_source.cc
@@ -48,8 +48,8 @@ std::unique_ptr<ScopedEventDispatcher> PlatformEventSource::OverrideDispatcher(
PlatformEventDispatcher* dispatcher) {
CHECK(dispatcher);
overridden_dispatcher_restored_ = false;
- return base::WrapUnique(
- new ScopedEventDispatcher(&overridden_dispatcher_, dispatcher));
+ return base::MakeUnique<ScopedEventDispatcher>(&overridden_dispatcher_,
+ dispatcher);
}
void PlatformEventSource::StopCurrentEventStream() {
« no previous file with comments | « ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine_unittest.cc ('k') | ui/events/platform/x11/x11_event_source_glib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698