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

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

Issue 2832913002: Harmonizing SmartLock dialog (Closed)
Patch Set: Rebase Created 3 years, 8 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_passwords_bubble_view.cc
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
index 03b1af0f08860a35bbd87320757d2dc220853c29..35a937686d01b8869a1014aec4cc6d9aa22340c9 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -230,20 +230,17 @@ ManagePasswordsBubbleView::AutoSigninView::AutoSigninView(
SetLayoutManager(new views::FillLayout);
const autofill::PasswordForm& form = parent_->model()->pending_password();
CredentialsItemView* credential;
+ base::string16 upper_text, lower_text = form.username_value;
if (ChromeLayoutProvider::Get()->IsHarmonyMode()) {
- credential = new CredentialsItemView(
- this,
- l10n_util::GetStringUTF16(IDS_MANAGE_PASSWORDS_AUTO_SIGNIN_TITLE_MD),
- form.username_value, kButtonHoverColor, &form,
- parent_->model()->GetProfile()->GetRequestContext());
+ upper_text =
+ l10n_util::GetStringUTF16(IDS_MANAGE_PASSWORDS_AUTO_SIGNIN_TITLE_MD);
} else {
- credential = new CredentialsItemView(
- this, base::string16(),
- l10n_util::GetStringFUTF16(IDS_MANAGE_PASSWORDS_AUTO_SIGNIN_TITLE,
- form.username_value),
- kButtonHoverColor, &form,
- parent_->model()->GetProfile()->GetRequestContext());
+ lower_text = l10n_util::GetStringFUTF16(
+ IDS_MANAGE_PASSWORDS_AUTO_SIGNIN_TITLE, lower_text);
}
+ credential = new CredentialsItemView(
+ this, upper_text, lower_text, kButtonHoverColor, &form,
+ parent_->model()->GetProfile()->GetRequestContext());
credential->SetEnabled(false);
AddChildView(credential);

Powered by Google App Engine
This is Rietveld 408576698