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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm

Issue 2028823003: Mac: Make ScopedTypeRef require explicit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove dependency Created 4 years, 6 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/extensions/browser_actions_controller.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
index 880beebf1528c9f9e06a62e8c2b61098dacbe7bd..7fd1beb3d387d2208f3c6239b1250f1a806c8472 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm
@@ -495,8 +495,8 @@ - (void)redraw {
- (void)removeViewForAction:(ToolbarActionViewController*)action {
// We're about to remove the button view from the container as well as from
// |buttons_|, so make sure we retain a reference.
- base::scoped_nsobject<BrowserActionButton> button =
- [[self buttonForId:action->GetId()] retain];
+ base::scoped_nsobject<BrowserActionButton> button(
+ [[self buttonForId:action->GetId()] retain]);
// Note: We remove the button from the view and the buttons list first because
// destroying it (or calling -onRemoved) can cause redraws, and we don't want

Powered by Google App Engine
This is Rietveld 408576698