| Index: chrome/browser/ui/passwords/manage_passwords_view_utils.cc
|
| diff --git a/chrome/browser/ui/passwords/manage_passwords_view_utils.cc b/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
|
| index 4ff7e5a2742f671a4e1ae5c9769a7756b089aa6b..dbacbcaa6d9aa3b037dd256980a6eecb3edca304 100644
|
| --- a/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
|
| +++ b/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
|
| @@ -26,6 +26,7 @@
|
| #include "ui/gfx/image/image_skia_operations.h"
|
| #include "ui/gfx/range/range.h"
|
| #include "url/gurl.h"
|
| +#include "url/origin.h"
|
|
|
| namespace {
|
|
|
| @@ -59,13 +60,13 @@ std::pair<base::string16, base::string16> GetCredentialLabelsForAccountChooser(
|
| const base::string16& upper_string =
|
| form.display_name.empty() ? form.username_value : form.display_name;
|
| base::string16 lower_string;
|
| - if (form.federation_url.is_empty()) {
|
| + if (form.federation_origin.unique()) {
|
| if (!form.display_name.empty())
|
| lower_string = form.username_value;
|
| } else {
|
| lower_string = l10n_util::GetStringFUTF16(
|
| IDS_PASSWORDS_VIA_FEDERATION,
|
| - base::UTF8ToUTF16(form.federation_url.host()));
|
| + base::UTF8ToUTF16(form.federation_origin.host()));
|
| }
|
| return std::make_pair(upper_string, lower_string);
|
| }
|
|
|