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); |