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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.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 | « no previous file | chrome/browser/ui/passwords/manage_passwords_ui_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
index 734bf5edb387984c3198e344702dede5bba96d5c..5240593ca0ae1975f645f230501c8d96386d4145 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
@@ -344,8 +344,9 @@ bool ManagePasswordsBubbleModel::IsNewUIActive() const {
}
bool ManagePasswordsBubbleModel::ShouldShowMultipleAccountUpdateUI() const {
- return state_ == password_manager::ui::PENDING_PASSWORD_UPDATE_STATE &&
- local_credentials_.size() > 1 && !password_overridden_;
+ ManagePasswordsUIController* controller =
+ ManagePasswordsUIController::FromWebContents(web_contents());
+ return controller->ShouldShowMultipleAccountUpdateUI();
}
// static
« no previous file with comments | « no previous file | chrome/browser/ui/passwords/manage_passwords_ui_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698