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

Unified Diff: shell/src/Main.cpp

Issue 29500602: Issue 5450 - introduce the Platform class (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 28, 2017, 12:40 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: shell/src/Main.cpp
diff --git a/shell/src/Main.cpp b/shell/src/Main.cpp
index 7013264eda96d53f16e77fe05d0e86032c6a94e3..a792184902d0f1345f795eedd345f6abf7e25731 100644
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -16,6 +16,7 @@
*/
#include <AdblockPlus.h>
+#include <AdblockPlus/Platform.h>
#include <iostream>
#include <sstream>
@@ -61,7 +62,10 @@ int main()
appInfo.application = "standalone";
appInfo.applicationVersion = "1.0";
appInfo.locale = "en-US";
- AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New(appInfo));
+
+ AdblockPlus::Platform platform;
+ platform.SetUpJsEngine(appInfo);
+ AdblockPlus::JsEnginePtr jsEngine = platform.GetJsEngine();
auto filterEngine = AdblockPlus::FilterEngine::Create(jsEngine);
CommandMap commands;

Powered by Google App Engine
This is Rietveld