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

Unified Diff: chrome/browser/ui/views/passwords/manage_password_items_view.cc

Issue 2716583003: Rename Origin.unique() to opaque().
Patch Set: Mac fixes Created 3 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 8443799ace65850a97f9c961c84770ea61e63eef..e2a4d6ce13ec30a325559d159ac465ff18eefcd7 100644
--- a/chrome/browser/ui/views/passwords/manage_password_items_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_password_items_view.cc
@@ -79,7 +79,7 @@ std::unique_ptr<views::Label> GenerateUsernameLabel(
std::unique_ptr<views::Label> GeneratePasswordLabel(
const autofill::PasswordForm& form) {
base::string16 text =
- form.federation_origin.unique()
+ form.federation_origin.opaque()
? form.password_value
: l10n_util::GetStringFUTF16(
IDS_PASSWORDS_VIA_FEDERATION,
@@ -88,7 +88,7 @@ std::unique_ptr<views::Label> GeneratePasswordLabel(
label->SetFontList(ui::ResourceBundle::GetSharedInstance().GetFontList(
ui::ResourceBundle::SmallFont));
label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
- if (form.federation_origin.unique())
+ if (form.federation_origin.opaque())
label->SetObscured(true);
return label;
}

Powered by Google App Engine
This is Rietveld 408576698