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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc

Issue 399573002: [Password Generation] Trigger confirmation bubble when a password is saved (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win Again Created 6 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/ui/views/passwords/manage_passwords_icon_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc
index 42457d001978e73f58b838eedd5bac30851dd331..87215ba63e2001b5b508cd53758abbfcce2abb01 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_icon_view.cc
@@ -53,12 +53,10 @@ void ManagePasswordsIconView::UpdateVisibleUI() {
SetImage(ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(icon_id_));
SetTooltipText(l10n_util::GetStringUTF16(tooltip_text_id_));
- if (password_manager::ui::PENDING_PASSWORD_AND_BUBBLE_STATE) {
- // We're about the automatically pop up a ManagePasswordsBubbleView.
- // Force layout of the icon's parent now; the bubble will be incorrectly
- // positioned otherwise, as the icon won't have been drawn into position.
- parent()->Layout();
- }
+ // We may be about to automatically pop up a ManagePasswordsBubbleView.
+ // Force layout of the icon's parent now; the bubble will be incorrectly
+ // positioned otherwise, as the icon won't have been drawn into position.
+ parent()->Layout();
}
bool ManagePasswordsIconView::IsBubbleShowing() const {

Powered by Google App Engine
This is Rietveld 408576698