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

Unified Diff: chrome/browser/android/rappor/rappor_service_bridge.cc

Issue 1312153003: jni_generator: Pass object parameters as JavaParamRef. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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/android/rappor/rappor_service_bridge.cc
diff --git a/chrome/browser/android/rappor/rappor_service_bridge.cc b/chrome/browser/android/rappor/rappor_service_bridge.cc
index 7dd7293bcaf71a122987256bfe09c1f633d5bf3e..f88b46aed802a544499c2be2b30fe2cf5fbfe08e 100644
--- a/chrome/browser/android/rappor/rappor_service_bridge.cc
+++ b/chrome/browser/android/rappor/rappor_service_bridge.cc
@@ -13,9 +13,9 @@
namespace rappor {
void SampleDomainAndRegistryFromURL(JNIEnv* env,
- jclass caller,
- jstring j_metric,
- jstring j_url) {
+ const JavaParamRef<jclass>& caller,
+ const JavaParamRef<jstring>& j_metric,
+ const JavaParamRef<jstring>& j_url) {
// TODO(knn): UMA metrics hash the string to prevent frequent re-encoding,
// perhaps we should do that as well.
std::string metric(base::android::ConvertJavaStringToUTF8(env, j_metric));
« no previous file with comments | « chrome/browser/android/provider/chrome_browser_provider.cc ('k') | chrome/browser/android/recently_closed_tabs_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698