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

Unified Diff: ui/events/platform/x11/x11_event_source_glib.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/platform_event_source.cc ('k') | ui/events/platform/x11/x11_event_source_libevent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/platform/x11/x11_event_source_glib.cc
diff --git a/ui/events/platform/x11/x11_event_source_glib.cc b/ui/events/platform/x11/x11_event_source_glib.cc
index f56ed8bb95c4a3a76ce1e25c9d705e06c3195baa..13ee489dede27c4dd5a702be77ab08c1a4804987 100644
--- a/ui/events/platform/x11/x11_event_source_glib.cc
+++ b/ui/events/platform/x11/x11_event_source_glib.cc
@@ -96,7 +96,7 @@ void X11EventSourceGlib::InitXSource(int fd) {
// static
std::unique_ptr<PlatformEventSource> PlatformEventSource::CreateDefault() {
- return base::WrapUnique(new X11EventSourceGlib(gfx::GetXDisplay()));
+ return base::MakeUnique<X11EventSourceGlib>(gfx::GetXDisplay());
}
} // namespace ui
« no previous file with comments | « ui/events/platform/platform_event_source.cc ('k') | ui/events/platform/x11/x11_event_source_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698