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

Unified Diff: base/android/path_utils.cc

Issue 7828084: Refactor ScopedJavaRef (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: operator= docs Created 9 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: base/android/path_utils.cc
diff --git a/base/android/path_utils.cc b/base/android/path_utils.cc
index 623e030cb10dc3361df02fab1027f72f87bf4926..dc45c28da622dfbab06c0f3b49b35fff02dd6f71 100644
--- a/base/android/path_utils.cc
+++ b/base/android/path_utils.cc
@@ -6,7 +6,7 @@
#include "base/android/jni_android.h"
#include "base/android/jni_string.h"
-#include "base/android/scoped_java_reference.h"
+#include "base/android/scoped_java_ref.h"
#include "jni/path_utils_jni.h"
@@ -15,14 +15,14 @@ namespace android {
std::string GetDataDirectory() {
JNIEnv* env = AttachCurrentThread();
- ScopedJavaReference<jstring> path(env, Java_PathUtils_getDataDirectory(
+ ScopedJavaLocalRef<jstring> path(env, Java_PathUtils_getDataDirectory(
env, base::android::GetApplicationContext()));
return base::android::ConvertJavaStringToUTF8(env, path.obj());
}
std::string GetCacheDirectory() {
JNIEnv* env = AttachCurrentThread();
- ScopedJavaReference<jstring> path(env, Java_PathUtils_getCacheDirectory(
+ ScopedJavaLocalRef<jstring> path(env, Java_PathUtils_getCacheDirectory(
env, base::android::GetApplicationContext()));
return base::android::ConvertJavaStringToUTF8(env, path.obj());
}

Powered by Google App Engine
This is Rietveld 408576698