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: Created Feb. 28, 2017, 2:21 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 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))

Powered by Google App Engine
This is Rietveld