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: 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 | « test/Notification.cpp ('k') | test/UpdateCheck.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/Prefs.cpp
diff --git a/test/Prefs.cpp b/test/Prefs.cpp
index ce217979fe96b6e9692df5682bfc8e6140493e7c..19dcd0c5171d975b8ba3fbcd8e7cb953c611573d 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::CreationParameters createParams;
+ createParams.preconfiguredPrefs = preconfiguredPrefs;
+ filterEngine = AdblockPlus::FilterEngine::Create(jsEngine, createParams);
}
};
}
« no previous file with comments | « test/Notification.cpp ('k') | test/UpdateCheck.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld