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

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

Issue 1787653002: Password update bubble UI improvement. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 9 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/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 f70cc62c6eed98b698c4d7d2695da4e13f304e64..f584e39da7e42ea6d89ecd2833393df324f667d4 100644
--- a/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_view_utils.cc
@@ -98,7 +98,9 @@ void GetSavePasswordDialogTitleTextAndLinkRange(
// the one seen in the omnibox) and the password form post-submit navigation
// URL differs or not.
if (!SameDomainOrHost(user_visible_url, form_origin_url)) {
- title_id = IDS_SAVE_PASSWORD_TITLE;
+ title_id = dialog_type == PasswordTittleType::UPDATE_PASSWORD
+ ? IDS_UPDATE_PASSWORD_DIFFERENT_DOMAINS_TITLE
+ : IDS_SAVE_PASSWORD_DIFFERENT_DOMAINS_TITLE;
// TODO(palmer): Look into passing real language prefs here, not "".
// crbug.com/498069.
replacements.push_back(url_formatter::FormatUrlForSecurityDisplay(
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/passwords/manage_passwords_view_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698