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

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: iOS2 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 2fa046aa5d53889c0ab1ef55a1ee51013c29bf38..50ccf00613fa18bd2fad95a47d16995f10042268 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
@@ -345,10 +345,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