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

Unified Diff: shell/src/Main.cpp

Issue 29535600: Issue 5617 - Provide with async executor bound to Platform in the future (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created Sept. 4, 2017, 12:03 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 2a3a92adb716dfa49a5149e4222f125c0380ba3c..f9ed3f7a8ed94d1f89fa991080296a5e5a48ce8f 100644
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -63,10 +63,10 @@ int main()
appInfo.applicationVersion = "1.0";
appInfo.locale = "en-US";
- AdblockPlus::Platform platform;
- platform.SetUpJsEngine(appInfo);
- AdblockPlus::JsEngine& jsEngine = platform.GetJsEngine();
- auto& filterEngine = platform.GetFilterEngine();
+ auto platform = AdblockPlus::DefaultPlatformBuilder().CreatePlatform();
+ platform->SetUpJsEngine(appInfo);
+ AdblockPlus::JsEngine& jsEngine = platform->GetJsEngine();
+ auto& filterEngine = platform->GetFilterEngine();
CommandMap commands;
Add(commands, new GcCommand(jsEngine));
« no previous file with comments | « include/AdblockPlus/Platform.h ('k') | src/Platform.cpp » ('j') | src/Platform.cpp » ('J')

Powered by Google App Engine
This is Rietveld