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

Unified Diff: src/WebRequestJsObject.cpp

Issue 29500602: Issue 5450 - introduce the Platform class (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: rebase Created July 31, 2017, 12:53 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: src/WebRequestJsObject.cpp
diff --git a/src/WebRequestJsObject.cpp b/src/WebRequestJsObject.cpp
index 7aad0ca25dda4b1d7a417e56bcab4d4bd92a5978..9764ee343e116e40855b2aafc6b8a7f2e7ed6757 100644
--- a/src/WebRequestJsObject.cpp
+++ b/src/WebRequestJsObject.cpp
@@ -21,7 +21,7 @@
#include "JsContext.h"
#include "Utils.h"
#include "WebRequestJsObject.h"
-#include <thread> // TODO: remove with removing of JsEngine::webRequestLegacy
+#include <AdblockPlus/Platform.h>
using namespace AdblockPlus;
@@ -80,7 +80,7 @@ void JsEngine::ScheduleWebRequest(const v8::FunctionCallbackInfo<v8::Value>& arg
webRequestParams[2].Call(resultObject);
};
- jsEngine->webRequest->GET(url, headers, getCallback);
+ jsEngine->GetPlatform().GetWebRequest().GET(url, headers, getCallback);
}
namespace
« include/AdblockPlus/Platform.h ('K') | « src/Platform.cpp ('k') | test/AppInfoJsObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld