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

Unified Diff: chrome/browser/password_manager/update_password_infobar_delegate_android.cc

Issue 2256653002: Change password update infobar design according to current mocks. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unused variables Created 4 years, 4 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/password_manager/update_password_infobar_delegate_android.cc
diff --git a/chrome/browser/password_manager/update_password_infobar_delegate_android.cc b/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
index 9fcb4792a608c1c716a2334a065993442440d991..9ddda12e4331b8323acf8e562acda7f397f6f1b6 100644
--- a/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
+++ b/chrome/browser/password_manager/update_password_infobar_delegate_android.cc
@@ -62,6 +62,15 @@ UpdatePasswordInfoBarDelegate::UpdatePasswordInfoBarDelegate(
std::unique_ptr<password_manager::PasswordFormManager> form_to_update,
bool is_smartlock_branding_enabled)
: is_smartlock_branding_enabled_(is_smartlock_branding_enabled) {
+ base::string16 message;
+ gfx::Range message_link_range = gfx::Range();
+ GetSavePasswordDialogTitleTextAndLinkRange(
+ web_contents->GetVisibleURL(), form_to_update->observed_form().origin,
+ is_smartlock_branding_enabled, PasswordTittleType::UPDATE_PASSWORD,
+ &message, &message_link_range);
+ SetMessage(message);
+ SetMessageLinkRange(message_link_range);
+
// TODO(melandory): Add histograms, crbug.com/577129
passwords_state_.set_client(
ChromePasswordManagerClient::FromWebContents(web_contents));
« no previous file with comments | « chrome/android/java/strings/android_chrome_strings.grd ('k') | chrome/browser/ui/android/infobars/update_password_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698