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

Unified Diff: chrome/browser/cocoa/location_bar/location_icon_decoration.mm

Issue 2958012: [Mac] Bring back the omnibox globe for an encore. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: Rohit's suggestions. Created 10 years, 5 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/cocoa/location_bar/location_icon_decoration.mm
diff --git a/chrome/browser/cocoa/location_bar/location_icon_decoration.mm b/chrome/browser/cocoa/location_bar/location_icon_decoration.mm
index 7c04548ee80e47860b9a86398b43a88716f10519..34cfe78e25e1fa37b5ca957ed956d52d68ba802a 100644
--- a/chrome/browser/cocoa/location_bar/location_icon_decoration.mm
+++ b/chrome/browser/cocoa/location_bar/location_icon_decoration.mm
@@ -30,7 +30,7 @@ CGFloat LocationIconDecoration::GetWidthForSpace(CGFloat width) {
NSImage* image = GetImage();
if (image) {
const CGFloat image_width = [image size].width;
- if (image_width >= width)
+ if (image_width <= width)
return image_width;
}
return kOmittedWidth;

Powered by Google App Engine
This is Rietveld 408576698