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

Unified Diff: chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.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/location_bar/web_intents_button_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm b/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm
index ee87f57428618e85a7fffd1255c4f92799312ee9..5551c6e7b29d019017202fd2ab8f114c85c18683 100644
--- a/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/web_intents_button_decoration.mm
@@ -140,9 +140,9 @@ WebIntentsButtonDecoration::~WebIntentsButtonDecoration() {}
void WebIntentsButtonDecoration::SetButtonImages(NSImage* left,
NSImage* center,
NSImage* right) {
- left_image_.reset(left, base::scoped_policy::RETAIN);
- center_image_.reset(center, base::scoped_policy::RETAIN);
- right_image_.reset(right, base::scoped_policy::RETAIN);
+ left_image_.reset([left retain]);
+ center_image_.reset([center retain]);
+ right_image_.reset([right retain]);
}
bool WebIntentsButtonDecoration::AcceptsMousePress() {

Powered by Google App Engine
This is Rietveld 408576698