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

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

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.h
diff --git a/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.h b/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.h
index 26a743af0cff74ee9a4831577a52239ad0d44ac4..66b1a86df101fa7e72463dd90d831cb461646944 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.h
+++ b/chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/android/jni_android.h"
+#include "base/android/scoped_java_ref.h"
#include "base/macros.h"
#include "base/strings/string16.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
@@ -33,8 +34,7 @@ class DataReductionPromoInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
static bool Register(JNIEnv* env);
static void Launch(JNIEnv* env,
- jclass,
- jobject jweb_contents);
+ const base::android::JavaRef<jobject>& jweb_contents);
base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(JNIEnv* env);
« no previous file with comments | « chrome/browser/android/tab_state.cc ('k') | chrome/browser/net/spdyproxy/data_reduction_promo_infobar_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698