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

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

Issue 1723583004: CREDENTIAL: Convert federations from URLs to origins throughout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/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 9322681dbf520dfa4db85353aa7cbe41d4bff462..61606f4355dd806f8384061535a6abb9f643c546 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
@@ -356,10 +356,10 @@ void ManagePasswordsBubbleModel::UpdatePendingStateTitle() {
title_brand_link_range_ = gfx::Range();
PasswordTittleType type =
state_ == password_manager::ui::PENDING_PASSWORD_UPDATE_STATE
- ? PasswordTittleType::UPDATE_PASSWORD
- : (pending_password_.federation_url.is_empty()
- ? PasswordTittleType::SAVE_PASSWORD
- : PasswordTittleType::SAVE_ACCOUNT);
+ ? PasswordTittleType::UPDATE_PASSWORD
+ : (pending_password_.federation_origin.unique()
+ ? PasswordTittleType::SAVE_PASSWORD
+ : PasswordTittleType::SAVE_ACCOUNT);
GetSavePasswordDialogTitleTextAndLinkRange(
web_contents()->GetVisibleURL(), origin(),
GetSmartLockBrandingState(GetProfile()) !=

Powered by Google App Engine
This is Rietveld 408576698