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

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

Issue 2588323002: Revert "Remove Finch support for PasswordBranding" (Closed)
Patch Set: Created 4 years 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 9b2c7f87fc76046d8baae8be798c458234cb2100..6ea354c7b80c567faa40a7528e05b4d745fb0fd3 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc
@@ -43,6 +43,7 @@ int ManagePasswordsBubbleView::auto_signin_toast_timeout_ = 3;
namespace {
const int kDesiredBubbleWidth = 370;
+const SkColor kWarmWelcomeColor = SkColorSetARGB(0xFF, 0x64, 0x64, 0x64);
enum ColumnSetType {
// | | (FILL, FILL) | |
@@ -318,6 +319,21 @@ ManagePasswordsBubbleView::PendingView::PendingView(
layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing);
}
+ // Smart Lock warm welcome.
+ if (parent_->model()->ShouldShowGoogleSmartLockWelcome()) {
+ views::Label* smart_lock_label = new views::Label(
+ l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_SMART_LOCK_WELCOME));
+ smart_lock_label->SetMultiLine(true);
+ smart_lock_label->SetFontList(
+ ui::ResourceBundle::GetSharedInstance().GetFontList(
+ ui::ResourceBundle::SmallFont));
+ smart_lock_label->SetHorizontalAlignment(gfx::ALIGN_LEFT);
+ smart_lock_label->SetEnabledColor(kWarmWelcomeColor);
+ layout->StartRow(0, SINGLE_VIEW_COLUMN_SET);
+ layout->AddView(smart_lock_label);
+ layout->AddPaddingRow(0, views::kUnrelatedControlVerticalSpacing);
+ }
+
// Button row.
BuildColumnSet(layout, DOUBLE_BUTTON_COLUMN_SET);
layout->StartRow(0, DOUBLE_BUTTON_COLUMN_SET);

Powered by Google App Engine
This is Rietveld 408576698