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

Unified Diff: chrome/browser/android/preferences/website_preference_bridge.cc

Issue 2219923002: JNI: allow either JavaRef or bare objects in Java calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unreachable line 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 | « base/android/scoped_java_ref.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/preferences/website_preference_bridge.cc
diff --git a/chrome/browser/android/preferences/website_preference_bridge.cc b/chrome/browser/android/preferences/website_preference_bridge.cc
index 9de85d3fa634026ef07e8b4f14898caac537442f..db33672693a2f6f25a80ea0af803adb83c7fec31 100644
--- a/chrome/browser/android/preferences/website_preference_bridge.cc
+++ b/chrome/browser/android/preferences/website_preference_bridge.cc
@@ -72,7 +72,11 @@ HostContentSettingsMap* GetHostContentSettingsMap(bool is_incognito) {
GetActiveUserProfile(is_incognito));
}
-typedef void (*InfoListInsertionFunction)(JNIEnv*, jobject, jstring, jstring);
+typedef void (*InfoListInsertionFunction)(
+ JNIEnv*,
+ const base::android::JavaRefOrBare<jobject>&,
+ const base::android::JavaRefOrBare<jstring>&,
+ const base::android::JavaRefOrBare<jstring>&);
void GetOrigins(JNIEnv* env,
ContentSettingsType content_type,
« no previous file with comments | « base/android/scoped_java_ref.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698