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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.mm

Issue 555243002: mac: Refactor browser_window_controller layout logic. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fullscreen_layout
Patch Set: Ensure location bar in consistent state after initialization. Created 6 years, 3 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 90cbbc4f88b71f0031ac4e1695526f02bdff2d20..2ced6d7f4e000cba789cd38897a22ea0b8eec008 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
@@ -154,6 +154,10 @@ LocationBarViewMac::LocationBarViewMac(AutocompleteTextField* field,
if (chrome::ShouldDisplayOriginChip())
origin_chip_decoration_.reset(new OriginChipDecoration(
this, location_icon_decoration_.get()));
+
+ // Sets images for the decorations, and performs a layout. This call ensures
+ // that this class is in a consistent state after initialization.
+ OnChanged();
}
LocationBarViewMac::~LocationBarViewMac() {

Powered by Google App Engine
This is Rietveld 408576698