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

Unified Diff: chrome/browser/ui/android/infobars/update_password_infobar.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
« no previous file with comments | « chrome/browser/password_manager/update_password_infobar_delegate_android.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/update_password_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/update_password_infobar.cc b/chrome/browser/ui/android/infobars/update_password_infobar.cc
index 39835ff7cfacb782bdfc4869d9c6ecb75dd22d88..51b3f3a2349ad17f3eca13b0f4512f35d3c9e253 100644
--- a/chrome/browser/ui/android/infobars/update_password_infobar.cc
+++ b/chrome/browser/ui/android/infobars/update_password_infobar.cc
@@ -36,8 +36,8 @@ UpdatePasswordInfoBar::CreateRenderInfoBar(JNIEnv* env) {
env, GetTextFor(ConfirmInfoBarDelegate::BUTTON_OK));
ScopedJavaLocalRef<jstring> cancel_button_text = ConvertUTF16ToJavaString(
env, GetTextFor(ConfirmInfoBarDelegate::BUTTON_CANCEL));
- ScopedJavaLocalRef<jstring> branding_text =
- ConvertUTF16ToJavaString(env, update_password_delegate->GetBranding());
+ ScopedJavaLocalRef<jstring> message_text =
+ ConvertUTF16ToJavaString(env, update_password_delegate->GetMessageText());
std::vector<base::string16> usernames;
if (update_password_delegate->ShowMultipleAccounts()) {
@@ -50,11 +50,11 @@ UpdatePasswordInfoBar::CreateRenderInfoBar(JNIEnv* env) {
base::android::ScopedJavaLocalRef<jobject> infobar;
infobar.Reset(Java_UpdatePasswordInfoBar_show(
- env, reinterpret_cast<intptr_t>(this), GetEnumeratedIconId(),
- base::android::ToJavaArrayOfStrings(env, usernames), ok_button_text,
- cancel_button_text, branding_text,
- update_password_delegate->ShowMultipleAccounts(),
- update_password_delegate->is_smartlock_branding_enabled()));
+ env, GetEnumeratedIconId(),
+ base::android::ToJavaArrayOfStrings(env, usernames), message_text,
+ update_password_delegate->message_link_range().start(),
+ update_password_delegate->message_link_range().end(), ok_button_text,
+ cancel_button_text));
java_infobar_.Reset(env, infobar.obj());
return infobar;
« no previous file with comments | « chrome/browser/password_manager/update_password_infobar_delegate_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698