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

Unified Diff: test/UpdateCheck.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: test/UpdateCheck.cpp
diff --git a/test/UpdateCheck.cpp b/test/UpdateCheck.cpp
index 41983c2848433a9b7b423597fd04104b5a99b8ec..7d5fe13b3301f724c4325938955475c4f970e3d7 100644
--- a/test/UpdateCheck.cpp
+++ b/test/UpdateCheck.cpp
@@ -77,7 +77,7 @@ namespace
jsEngine->SetEventCallback("updateAvailable",
std::bind(&UpdateCheckTest::EventCallback, this, std::placeholders::_1));
- filterEngine.reset(new AdblockPlus::FilterEngine(jsEngine));
+ filterEngine = AdblockPlus::FilterEngine::Create(jsEngine);
}
void ForceUpdateCheck()
« include/AdblockPlus/FilterEngine.h ('K') | « test/Prefs.cpp ('k') | test/WebRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld