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

Unified Diff: chrome/browser/ui/views/passwords/manage_password_items_view.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/views/passwords/manage_password_items_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_password_items_view.cc b/chrome/browser/ui/views/passwords/manage_password_items_view.cc
index 1ca7115820f60360d9a23739535d4c768c54dfd9..1ad9058f030fd0865c457e33accc57f0833b04f8 100644
--- a/chrome/browser/ui/views/passwords/manage_password_items_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_password_items_view.cc
@@ -77,16 +77,17 @@ scoped_ptr<views::Label> GenerateUsernameLabel(
scoped_ptr<views::Label> GeneratePasswordLabel(
const autofill::PasswordForm& form) {
- base::string16 text = form.federation_url.is_empty()
- ? form.password_value
- : l10n_util::GetStringFUTF16(
- IDS_PASSWORDS_VIA_FEDERATION,
- base::UTF8ToUTF16(form.federation_url.host()));
+ base::string16 text =
+ form.federation_origin.unique()
+ ? form.password_value
+ : l10n_util::GetStringFUTF16(
+ IDS_PASSWORDS_VIA_FEDERATION,
+ base::UTF8ToUTF16(form.federation_origin.host()));
scoped_ptr<views::Label> label(new views::Label(text));
label->SetFontList(ui::ResourceBundle::GetSharedInstance().GetFontList(
ui::ResourceBundle::SmallFont));
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- if (form.federation_url.is_empty())
+ if (form.federation_origin.unique())
label->SetObscured(true);
return label;
}

Powered by Google App Engine
This is Rietveld 408576698