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

Unified Diff: ui/events/platform/x11/x11_event_source.h

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
Index: ui/events/platform/x11/x11_event_source.h
diff --git a/ui/events/platform/x11/x11_event_source.h b/ui/events/platform/x11/x11_event_source.h
index 58169087e4eaf634da47d1543a9428cdae0cfe9b..afc05882bf2c65859061438957a8af5cdbb46d54 100644
--- a/ui/events/platform/x11/x11_event_source.h
+++ b/ui/events/platform/x11/x11_event_source.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "ui/events/events_export.h"
#include "ui/gfx/x/x11_types.h"
@@ -83,7 +84,7 @@ class EVENTS_EXPORT X11EventSource {
// available events.
bool continue_stream_ = true;
- scoped_ptr<X11HotplugEventHandler> hotplug_event_handler_;
+ std::unique_ptr<X11HotplugEventHandler> hotplug_event_handler_;
DISALLOW_COPY_AND_ASSIGN(X11EventSource);
};
« no previous file with comments | « ui/events/platform/platform_event_source_unittest.cc ('k') | ui/events/platform/x11/x11_event_source_glib.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698