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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_bubble_model.cc

Issue 319463002: Password bubble: Update the blacklisted-bubble text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New text. Created 6 years, 6 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
index 6eca416e2d4b77252d5214d6aeb57868fe7e603d..e18bcc805e3dc0e19026043f8830b6f7460bc999 100644
--- a/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_bubble_model.cc
@@ -33,9 +33,13 @@ ManagePasswordsBubbleModel::ManagePasswordsBubbleModel(
pending_credentials_ = controller->PendingCredentials();
best_matches_ = controller->best_matches();
- title_ = l10n_util::GetStringUTF16(
- password_manager::ui::IsPendingState(state_) ? IDS_SAVE_PASSWORD
- : IDS_MANAGE_PASSWORDS);
+ if (password_manager::ui::IsPendingState(state_))
+ title_ = l10n_util::GetStringUTF16(IDS_SAVE_PASSWORD);
+ else if (state_ == password_manager::ui::BLACKLIST_STATE)
+ title_ = l10n_util::GetStringUTF16(IDS_MANAGE_PASSWORDS_BLACKLISTED_TITLE);
+ else
+ title_ = l10n_util::GetStringUTF16(IDS_MANAGE_PASSWORDS_TITLE);
+
manage_link_ =
l10n_util::GetStringUTF16(IDS_OPTIONS_PASSWORDS_MANAGE_PASSWORDS_LINK);
}
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698