| 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 b8d21906f234e57eeaa05f24d16f9fa2bcf0cd63..e8fb04c9618407791ee2be2785b677af2c3127a6 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
|
| @@ -131,7 +131,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) {
|
| @@ -208,6 +208,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();
|
|
|