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

Unified Diff: ui/events/event_utils.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/event_utils.h ('k') | ui/events/gesture_detection/gesture_detector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event_utils.cc
diff --git a/ui/events/event_utils.cc b/ui/events/event_utils.cc
index aa9ed7b34e90916d6d73589fefab85537133e272..503d74804d4f8d769f92731b2746766a27168e6e 100644
--- a/ui/events/event_utils.cc
+++ b/ui/events/event_utils.cc
@@ -15,8 +15,8 @@ namespace {
int g_custom_event_types = ET_LAST;
} // namespace
-scoped_ptr<Event> EventFromNative(const base::NativeEvent& native_event) {
- scoped_ptr<Event> event;
+std::unique_ptr<Event> EventFromNative(const base::NativeEvent& native_event) {
+ std::unique_ptr<Event> event;
EventType type = EventTypeFromNative(native_event);
switch(type) {
case ET_KEY_PRESSED:
« no previous file with comments | « ui/events/event_utils.h ('k') | ui/events/gesture_detection/gesture_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698