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

Unified Diff: chrome/browser/ui/android/infobars/confirm_infobar.cc

Issue 1150193004: Straighten up life cycle of native InfoBar pointers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed unrelated file Created 5 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
Index: chrome/browser/ui/android/infobars/confirm_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/confirm_infobar.cc b/chrome/browser/ui/android/infobars/confirm_infobar.cc
index 149e0de1dc687713613283a2b2be65c55bfbe765..9fef5cf2b9c7ef697663bec84328d9f77c84f778 100644
--- a/chrome/browser/ui/android/infobars/confirm_infobar.cc
+++ b/chrome/browser/ui/android/infobars/confirm_infobar.cc
@@ -54,9 +54,9 @@ base::android::ScopedJavaLocalRef<jobject> ConfirmInfoBar::CreateRenderInfoBar(
}
return Java_ConfirmInfoBarDelegate_showConfirmInfoBar(
- env, java_confirm_delegate_.obj(), reinterpret_cast<intptr_t>(this),
- GetEnumeratedIconId(), java_bitmap.obj(), message_text.obj(),
- link_text.obj(), ok_button_text.obj(), cancel_button_text.obj());
+ env, java_confirm_delegate_.obj(), GetEnumeratedIconId(),
+ java_bitmap.obj(), message_text.obj(), link_text.obj(),
+ ok_button_text.obj(), cancel_button_text.obj());
}
void ConfirmInfoBar::OnLinkClicked(JNIEnv* env, jobject obj) {

Powered by Google App Engine
This is Rietveld 408576698