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

Unified Diff: android_webview/native/input_stream_impl.h

Issue 2295693004: Pass JavaRef to Java methods in android_webview. (Closed)
Patch Set: Created 4 years, 4 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 | « android_webview/native/aw_web_contents_delegate.cc ('k') | android_webview/native/input_stream_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/input_stream_impl.h
diff --git a/android_webview/native/input_stream_impl.h b/android_webview/native/input_stream_impl.h
index e78ad76d1f97389def9ba07adbdf7ea919d48c40..c50566308674d631e0d2a08f59420427060262c0 100644
--- a/android_webview/native/input_stream_impl.h
+++ b/android_webview/native/input_stream_impl.h
@@ -32,7 +32,7 @@ class InputStreamImpl : public InputStream {
~InputStreamImpl() override;
// Gets the underlying Java object. Guaranteed non-NULL.
- jobject jobj() const { return jobject_.obj(); }
+ const base::android::JavaRef<jobject>& jobj() const { return jobject_; }
// InputStream implementation.
bool BytesAvailable(int* bytes_available) const override;
« no previous file with comments | « android_webview/native/aw_web_contents_delegate.cc ('k') | android_webview/native/input_stream_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698