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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc

Issue 2315323002: Pass JavaRef to WebContents::FromJavaWebContents. (Closed)
Patch Set: Created 4 years, 3 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/net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc b/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc
index 48933886f4ee2f653b5228ef7e0db224feff813e..6f31964df9ba1f79c2bf9177516d5f666ea2722f 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc
@@ -11,6 +11,7 @@
#include "jni/DataReductionPromoInfoBarDelegate_jni.h"
using base::android::JavaParamRef;
+using base::android::JavaRef;
// static
void DataReductionPromoInfoBarDelegateAndroid::Create(
@@ -39,7 +40,8 @@ bool DataReductionPromoInfoBarDelegateAndroid::Register(JNIEnv* env) {
// static
void DataReductionPromoInfoBarDelegateAndroid::Launch(
- JNIEnv* env, jclass, jobject jweb_contents) {
+ JNIEnv* env,
+ const JavaRef<jobject>& jweb_contents) {
content::WebContents* web_contents =
content::WebContents::FromJavaWebContents(jweb_contents);
DCHECK(web_contents);
@@ -72,5 +74,5 @@ bool DataReductionPromoInfoBarDelegateAndroid::Accept() {
void Launch(JNIEnv* env,
const JavaParamRef<jclass>& clazz,
const JavaParamRef<jobject>& jweb_contents) {
- DataReductionPromoInfoBarDelegateAndroid::Launch(env, clazz, jweb_contents);
+ DataReductionPromoInfoBarDelegateAndroid::Launch(env, jweb_contents);
}

Powered by Google App Engine
This is Rietveld 408576698