Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: libadblockplus-android/jni/Utils.cpp

Issue 29361445: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: fixed 2 more members in AdblockEngine Created Dec. 16, 2016, 8:31 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: libadblockplus-android/jni/Utils.cpp
diff --git a/libadblockplus-android/jni/Utils.cpp b/libadblockplus-android/jni/Utils.cpp
index 6c1b9274c417a4cfa8f93b37314d858bae94c188..3418417501da776b176e499eb96306e4bb3279b3 100644
--- a/libadblockplus-android/jni/Utils.cpp
+++ b/libadblockplus-android/jni/Utils.cpp
@@ -33,6 +33,11 @@ std::string JniJavaToStdString(JNIEnv* env, jstring str)
return ret;
}
+jstring JniStdStringToJava(JNIEnv* env, std::string str)
+{
+ return env->NewStringUTF(str.c_str());
+}
+
jobject NewJniArrayList(JNIEnv* env)
{
JniLocalReference<jclass> clazz(env, env->FindClass("java/util/ArrayList"));

Powered by Google App Engine
This is Rietveld