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

Unified Diff: ui/events/platform/x11/x11_event_source_glib.cc

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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_glib.h ('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 1eb272a4f29a1fa10b725ce6c4c3ec5711b5ecf1..f56ed8bb95c4a3a76ce1e25c9d705e06c3195baa 100644
--- a/ui/events/platform/x11/x11_event_source_glib.cc
+++ b/ui/events/platform/x11/x11_event_source_glib.cc
@@ -4,8 +4,10 @@
#include "ui/events/platform/x11/x11_event_source_glib.h"
-#include <glib.h>
#include <X11/Xlib.h>
+#include <glib.h>
+
+#include "base/memory/ptr_util.h"
namespace ui {
@@ -93,8 +95,8 @@ void X11EventSourceGlib::InitXSource(int fd) {
}
// static
-scoped_ptr<PlatformEventSource> PlatformEventSource::CreateDefault() {
- return make_scoped_ptr(new X11EventSourceGlib(gfx::GetXDisplay()));
+std::unique_ptr<PlatformEventSource> PlatformEventSource::CreateDefault() {
+ return base::WrapUnique(new X11EventSourceGlib(gfx::GetXDisplay()));
}
} // namespace ui
« no previous file with comments | « ui/events/platform/x11/x11_event_source_glib.h ('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