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

Unified Diff: shell/src/Main.cpp

Issue 29377064: Issue 4944 - Make creation of FilterEngine asynchronous. (Closed)
Patch Set: rebase and address comments Created March 16, 2017, 3:47 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
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/src/Main.cpp
diff --git a/shell/src/Main.cpp b/shell/src/Main.cpp
index a846731ff2d7c5d8c54cd7544d41ccc494e1f44b..ccbbce8f3931b8a334c326eb9f59e0d3f789da6d 100644
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -62,15 +62,15 @@ int main()
appInfo.applicationVersion = "1.0";
appInfo.locale = "en-US";
AdblockPlus::JsEnginePtr jsEngine(AdblockPlus::JsEngine::New(appInfo));
- AdblockPlus::FilterEngine filterEngine(jsEngine);
+ auto filterEngine = AdblockPlus::FilterEngine::Create(jsEngine);
CommandMap commands;
Add(commands, new GcCommand(jsEngine));
Add(commands, new HelpCommand(commands));
- Add(commands, new FiltersCommand(filterEngine));
- Add(commands, new SubscriptionsCommand(filterEngine));
- Add(commands, new MatchesCommand(filterEngine));
- Add(commands, new PrefsCommand(filterEngine));
+ Add(commands, new FiltersCommand(*filterEngine));
+ Add(commands, new SubscriptionsCommand(*filterEngine));
+ Add(commands, new MatchesCommand(*filterEngine));
+ Add(commands, new PrefsCommand(*filterEngine));
std::string commandLine;
while (ReadCommandLine(commandLine))
« no previous file with comments | « include/AdblockPlus/FilterEngine.h ('k') | src/FilterEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld