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

Unified Diff: test/Prefs.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/Prefs.cpp
diff --git a/test/Prefs.cpp b/test/Prefs.cpp
index ce217979fe96b6e9692df5682bfc8e6140493e7c..ce502628ba4d64cefe845e0ce20eff3a0efaada6 100644
--- a/test/Prefs.cpp
+++ b/test/Prefs.cpp
@@ -85,9 +85,9 @@ namespace
jsEngine->SetLogSystem(AdblockPlus::LogSystemPtr(new LazyLogSystem));
jsEngine->SetFileSystem(fileSystemPtr);
jsEngine->SetWebRequest(AdblockPlus::WebRequestPtr(new LazyWebRequest));
-
- filterEngine.reset(
- new AdblockPlus::FilterEngine(jsEngine, preconfiguredPrefs));
+ AdblockPlus::FilterEngine::CreateParameters createParams;
+ createParams.preconfiguredPrefs = preconfiguredPrefs;
+ filterEngine = AdblockPlus::FilterEngine::Create(jsEngine, createParams);
}
};
}

Powered by Google App Engine
This is Rietveld