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

Unified Diff: chrome/browser/android/find_in_page/find_in_page_bridge.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
« no previous file with comments | « chrome/browser/android/find_in_page/find_in_page_bridge.h ('k') | chrome/browser/android/tab_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/find_in_page/find_in_page_bridge.cc
diff --git a/chrome/browser/android/find_in_page/find_in_page_bridge.cc b/chrome/browser/android/find_in_page/find_in_page_bridge.cc
index 374510452e172ef4f897d3d788bc1a70f81ff6f6..88d299832485ede3684281ea9328c196e487df81 100644
--- a/chrome/browser/android/find_in_page/find_in_page_bridge.cc
+++ b/chrome/browser/android/find_in_page/find_in_page_bridge.cc
@@ -11,11 +11,12 @@
using base::android::ConvertUTF16ToJavaString;
using base::android::JavaParamRef;
+using base::android::JavaRef;
using base::android::ScopedJavaLocalRef;
FindInPageBridge::FindInPageBridge(JNIEnv* env,
- jobject obj,
- jobject j_web_contents)
+ const JavaRef<jobject>& obj,
+ const JavaRef<jobject>& j_web_contents)
: weak_java_ref_(env, obj) {
web_contents_ = content::WebContents::FromJavaWebContents(j_web_contents);
}
« no previous file with comments | « chrome/browser/android/find_in_page/find_in_page_bridge.h ('k') | chrome/browser/android/tab_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698