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

Unified Diff: media/base/android/android_util.h

Issue 2796843002: [Clank] Load/Remove persistent license (Closed)
Patch Set: nit Created 3 years, 8 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 | « no previous file | media/base/android/android_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/android_util.h
diff --git a/media/base/android/android_util.h b/media/base/android/android_util.h
index 2e7b9687c252a79f45884ce15f9506787961ac52..527882e37ab7f49207b84c3e6b63ba6dbdeae6ae 100644
--- a/media/base/android/android_util.h
+++ b/media/base/android/android_util.h
@@ -15,6 +15,11 @@ using JavaObjectPtr =
// Converts jbyteArray (byte[] in Java) into std::string.
std::string JavaBytesToString(JNIEnv* env, jbyteArray j_byte_array);
+// Converts std::string to jbyteArray (byte[] in Java).
+base::android::ScopedJavaLocalRef<jbyteArray> StringToJavaBytes(
+ JNIEnv* env,
+ const std::string& str);
+
// A helper method to create a JavaObjectPtr.
JavaObjectPtr CreateJavaObjectPtr(jobject object);
« no previous file with comments | « no previous file | media/base/android/android_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698