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

Unified Diff: ui/platform_window/win/win_window.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/platform_window/platform_window.h ('k') | ui/shell_dialogs/select_file_dialog.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/win/win_window.cc
diff --git a/ui/platform_window/win/win_window.cc b/ui/platform_window/win/win_window.cc
index 1282b091308eba83b07fdd61f51480ec6d5142a8..c72670a70e9dc6ffdd4834157ae704539edc2703 100644
--- a/ui/platform_window/win/win_window.cc
+++ b/ui/platform_window/win/win_window.cc
@@ -4,7 +4,8 @@
#include "ui/platform_window/win/win_window.h"
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "base/strings/string16.h"
#include "ui/events/event.h"
#include "ui/events/event_utils.h"
@@ -126,7 +127,7 @@ LRESULT WinWindow::OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param) {
MSG msg = { hwnd(), message, w_param, l_param,
static_cast<DWORD>(GetMessageTime()),
{ CR_GET_X_LPARAM(l_param), CR_GET_Y_LPARAM(l_param) } };
- scoped_ptr<Event> event = EventFromNative(msg);
+ std::unique_ptr<Event> event = EventFromNative(msg);
if (IsMouseEventFromTouch(message))
event->set_flags(event->flags() | EF_FROM_TOUCH);
if (!(event->flags() & ui::EF_IS_NON_CLIENT))
« no previous file with comments | « ui/platform_window/platform_window.h ('k') | ui/shell_dialogs/select_file_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698