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

Unified Diff: chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm

Issue 11932002: mac: Remove OwnershipPolicy parameter to scoped_nsobject. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 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: chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm b/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm
index 58c5c99f6027a5985648ef8f005eed1bbc38ddbc..ddd06f4aaf9bd28a180e97098262ca189821b2b6 100644
--- a/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm
+++ b/chrome/browser/ui/cocoa/panels/panel_window_controller_cocoa.mm
@@ -235,7 +235,7 @@ NSCursor* LoadWebKitCursor(WebKit::WebCursorInfo::Type type) {
// the cursor will flicker. Disable cursor rects and grab the current cursor
// so we can set it on mouseDragged: events to avoid flicker.
[[self window] disableCursorRects];
- dragCursor_.reset([NSCursor currentCursor], base::scoped_policy::RETAIN);
+ dragCursor_.reset([[NSCursor currentCursor] retain]);
}
- (void)cleanupAfterDrag {

Powered by Google App Engine
This is Rietveld 408576698