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

Unified Diff: base/android/jni_string.h

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/jni_string.h
diff --git a/base/android/jni_string.h b/base/android/jni_string.h
index 7e451543cafe9a45ca0ddaee78810d9fd28a5669..bb902d1884f66b9c2941ecd569ff789900b7e77a 100644
--- a/base/android/jni_string.h
+++ b/base/android/jni_string.h
@@ -9,6 +9,7 @@
#include <string>
#include "base/string16.h"
+#include "base/string_piece.h"
namespace base {
namespace android {
@@ -17,7 +18,7 @@ namespace android {
std::string ConvertJavaStringToUTF8(JNIEnv* env, jstring str);
// Convert a std string to Java string.
-jstring ConvertUTF8ToJavaString(JNIEnv* env, const std::string& str);
+jstring ConvertUTF8ToJavaString(JNIEnv* env, const base::StringPiece& str);
// Convert a Java string to UTF16. Returns a string16.
string16 ConvertJavaStringToUTF16(JNIEnv* env, jstring str);

Powered by Google App Engine
This is Rietveld 408576698