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

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

Issue 29453616: Issue 5286 - Update to use libadblockplus rev. b88d098aeab5 (Closed) Base URL: github.com:abby-sergz/libadblockplus-android.git
Patch Set: Created June 1, 2017, 1:41 p.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/JniWebRequest.cpp
diff --git a/libadblockplus-android/jni/JniWebRequest.cpp b/libadblockplus-android/jni/JniWebRequest.cpp
index 4d34b4c55e3dcbe25a46d5edebf2aa1637b81160..33d172e3785186dd1e8d985ee833189cf3460e62 100644
--- a/libadblockplus-android/jni/JniWebRequest.cpp
+++ b/libadblockplus-android/jni/JniWebRequest.cpp
@@ -48,7 +48,7 @@ static jlong JNICALL JniCtor(JNIEnv* env, jclass clazz, jobject callbackObject)
{
try
{
- return JniPtrToLong(new AdblockPlus::WebRequestPtr(new JniWebRequest(env, callbackObject)));
+ return JniPtrToLong(new AdblockPlus::WebRequestSharedPtr(std::make_shared<JniWebRequest>(env, callbackObject)));
}
CATCH_THROW_AND_RETURN(env, 0)
}
@@ -75,7 +75,7 @@ AdblockPlus::ServerResponse JniWebRequest::GET(const std::string& url,
"(Ljava/lang/String;Ljava/util/List;)" TYP("ServerResponse"));
AdblockPlus::ServerResponse sResponse;
- sResponse.status = AdblockPlus::WebRequest::NS_ERROR_FAILURE;
+ sResponse.status = AdblockPlus::IWebRequest::NS_ERROR_FAILURE;
if (method)
{

Powered by Google App Engine
This is Rietveld