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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java

Issue 1150193004: Straighten up life cycle of native InfoBar pointers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed setNativeInfoBarPtr calls from child classes Created 5 years, 7 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/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java
index 9ae5ac5f50e1589862e174ef0f5b40329ea2e8ed..483d357055c1fa5823221255ebdf2a6b67e7d062 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/DataReductionProxyInfoBarDelegate.java
@@ -36,10 +36,9 @@ public class DataReductionProxyInfoBarDelegate {
* passing it to this function.
*/
@CalledByNative
- InfoBar showDataReductionProxyInfoBar(long nativeInfoBar, int enumeratedIconId) {
+ InfoBar showDataReductionProxyInfoBar(int enumeratedIconId) {
int drawableId = ResourceId.mapToDrawableId(enumeratedIconId);
- DataReductionProxyInfoBar infoBar = new DataReductionProxyInfoBar(
- nativeInfoBar, drawableId);
+ DataReductionProxyInfoBar infoBar = new DataReductionProxyInfoBar(drawableId);
return infoBar;
}

Powered by Google App Engine
This is Rietveld 408576698