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

Unified Diff: ui/views/cocoa/cocoa_mouse_capture.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
« no previous file with comments | « ui/views/cocoa/bridged_native_widget_unittest.mm ('k') | ui/views/cocoa/cocoa_mouse_capture_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/cocoa/cocoa_mouse_capture.h
diff --git a/ui/views/cocoa/cocoa_mouse_capture.h b/ui/views/cocoa/cocoa_mouse_capture.h
index 55f87ede81c3050df0340a40644b65db4aa9da7a..247caa4e82caa1200f224959b48fdb826bf5e9db 100644
--- a/ui/views/cocoa/cocoa_mouse_capture.h
+++ b/ui/views/cocoa/cocoa_mouse_capture.h
@@ -5,8 +5,9 @@
#ifndef UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_H_
#define UI_VIEWS_COCOA_COCOA_MOUSE_CAPTURE_H_
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "ui/views/views_export.h"
namespace views {
@@ -36,7 +37,7 @@ class VIEWS_EXPORT CocoaMouseCapture {
// The active event tap for this capture. Owned by this, but can be cleared
// out early if another instance of CocoaMouseCapture is created.
- scoped_ptr<ActiveEventTap> active_handle_;
+ std::unique_ptr<ActiveEventTap> active_handle_;
DISALLOW_COPY_AND_ASSIGN(CocoaMouseCapture);
};
« no previous file with comments | « ui/views/cocoa/bridged_native_widget_unittest.mm ('k') | ui/views/cocoa/cocoa_mouse_capture_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698