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 a2f6d3d7852427d9a44317e9a4e8d8ce2d381cc1..d4a4967a7275cec59d6cdcbecfce9d5835cfd646 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 |
@@ -133,7 +133,7 @@ LocationBarViewMac::LocationBarViewMac(AutocompleteTextField* field, |
new GeneratedCreditCardDecoration(this)), |
search_button_decoration_(new SearchButtonDecoration(this)), |
manage_passwords_decoration_( |
- new ManagePasswordsDecoration(command_updater)), |
+ new ManagePasswordsDecoration(command_updater, this)), |
browser_(browser), |
weak_ptr_factory_(this) { |
for (size_t i = 0; i < CONTENT_SETTINGS_NUM_TYPES; ++i) { |
@@ -222,6 +222,7 @@ void LocationBarViewMac::UpdateManagePasswordsIconAndBubble() { |
return; |
ManagePasswordsUIController::FromWebContents(web_contents) |
->UpdateIconAndBubbleState(manage_passwords_decoration_->icon()); |
+ OnDecorationsChanged(); |
} |
void LocationBarViewMac::UpdatePageActions() { |
@@ -526,6 +527,7 @@ NSPoint LocationBarViewMac::GetPageActionBubblePoint( |
} |
void LocationBarViewMac::Update(const WebContents* contents) { |
+ UpdateManagePasswordsIconAndBubble(); |
UpdateStarDecorationVisibility(); |
UpdateTranslateDecoration(); |
UpdateZoomDecoration(); |