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

Unified Diff: sync/android/model_type_helper.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
« no previous file with comments | « remoting/client/jni/jni_client.cc ('k') | sync/test/fake_server/android/fake_server_helper_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/android/model_type_helper.cc
diff --git a/sync/android/model_type_helper.cc b/sync/android/model_type_helper.cc
index 37650cbdf39d102912717103656e357846c34f4c..64d808fbd0f25d06ebeb709935fafa1c0aa3e166 100644
--- a/sync/android/model_type_helper.cc
+++ b/sync/android/model_type_helper.cc
@@ -11,8 +11,10 @@
namespace syncer {
-static ScopedJavaLocalRef<jstring>
-ModelTypeToNotificationType(JNIEnv* env, jclass clazz, jint model_type_int) {
+static ScopedJavaLocalRef<jstring> ModelTypeToNotificationType(
+ JNIEnv* env,
+ const JavaParamRef<jclass>& clazz,
+ jint model_type_int) {
std::string model_type_string;
ModelType model_type = static_cast<ModelType>(model_type_int);
if (!RealModelTypeToNotificationType(model_type, &model_type_string)) {
« no previous file with comments | « remoting/client/jni/jni_client.cc ('k') | sync/test/fake_server/android/fake_server_helper_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698