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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller.cc

Issue 1311833004: [Password Manager] Implement ShouldShowMultipleAccountUpdateUI in ManagePasswordUIController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove check Created 5 years, 4 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
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
index 224f36da1e303ee5f5124f39a706945f972386f0..1874471cd541fee694b3fe6d95c14e845b2e0924 100644
--- a/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_ui_controller.cc
@@ -383,6 +383,11 @@ void ManagePasswordsUIController::ShowBubbleWithoutUserInteraction() {
#endif
}
+bool ManagePasswordsUIController::ShouldShowMultipleAccountUpdateUI() const {
+ return state() == password_manager::ui::PENDING_PASSWORD_UPDATE_STATE &&
+ GetCurrentForms().size() > 1 && !PasswordOverridden();
+}
+
void ManagePasswordsUIController::WebContentsDestroyed() {
password_manager::PasswordStore* password_store =
GetPasswordStore(web_contents());
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_ui_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698