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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.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/location_bar/location_bar_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
index b174404f0e70daf2611b85b8c3f61c539e9aace9..9b8b0212437378ca3cf2cf01c04d2654cbbaebd2 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm
@@ -128,10 +128,10 @@ + (NSImage*)imageForId:(gfx::VectorIconId)vectorIconId
base::mac::GetSRGBColorSpace());
}
- base::scoped_nsobject<LocationBarImageRep> imageRep =
+ base::scoped_nsobject<LocationBarImageRep> imageRep(
[[LocationBarImageRep alloc]
initWithDrawSelector:@selector(drawLocationBarIcon:)
- delegate:[LocationBarImageRep class]];
+ delegate:[LocationBarImageRep class]]);
[imageRep setIconId:vectorIconId];
[imageRep setFillColor:skia::SkColorToSRGBNSColor(vectorIconColor)];
« no previous file with comments | « chrome/browser/ui/cocoa/fullscreen_low_power_coordinator.h ('k') | chrome/browser/ui/cocoa/new_tab_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698