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

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

Issue 29351744: Issue 4399 - Add WebView inheritor with ad blocking (Closed)
Patch Set: changed packages, now using AdblockEngine (original ABPEngine), improved demo app Created Oct. 25, 2016, 11:20 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
« no previous file with comments | « libadblockplus-android/jni/Utils.h ('k') | libadblockplus-android/pom.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"));
« no previous file with comments | « libadblockplus-android/jni/Utils.h ('k') | libadblockplus-android/pom.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld