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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller_unittest.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/constrained_window/constrained_window_sheet_controller_unittest.mm
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller_unittest.mm b/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller_unittest.mm
index 245546f16fb3d94fdaaa689703fc3c7a62ab3f69..4dd0be9b152642f63b524427ea26947fa54a1279 100644
--- a/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller_unittest.mm
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_sheet_controller_unittest.mm
@@ -82,8 +82,8 @@ class ConstrainedWindowSheetControllerTest : public CocoaTest {
scoped_nsobject<NSView> view([[NSView alloc] initWithFrame:dummyRect]);
[tab_views_ addObject:view];
}
- tab0_.reset([tab_views_ objectAtIndex:0], base::scoped_policy::RETAIN);
- tab1_.reset([tab_views_ objectAtIndex:1], base::scoped_policy::RETAIN);
+ tab0_.reset([[tab_views_ objectAtIndex:0] retain]);
+ tab1_.reset([[tab_views_ objectAtIndex:1] retain]);
ActivateTabView(tab0_);
// Create a test sheet.
« no previous file with comments | « base/memory/scoped_nsobject_unittest.mm ('k') | chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698