Index: shell/src/Main.cpp |
diff --git a/shell/src/Main.cpp b/shell/src/Main.cpp |
index 2a3a92adb716dfa49a5149e4222f125c0380ba3c..f9ed3f7a8ed94d1f89fa991080296a5e5a48ce8f 100644 |
--- a/shell/src/Main.cpp |
+++ b/shell/src/Main.cpp |
@@ -63,10 +63,10 @@ int main() |
appInfo.applicationVersion = "1.0"; |
appInfo.locale = "en-US"; |
- AdblockPlus::Platform platform; |
- platform.SetUpJsEngine(appInfo); |
- AdblockPlus::JsEngine& jsEngine = platform.GetJsEngine(); |
- auto& filterEngine = platform.GetFilterEngine(); |
+ auto platform = AdblockPlus::DefaultPlatformBuilder().CreatePlatform(); |
+ platform->SetUpJsEngine(appInfo); |
+ AdblockPlus::JsEngine& jsEngine = platform->GetJsEngine(); |
+ auto& filterEngine = platform->GetFilterEngine(); |
CommandMap commands; |
Add(commands, new GcCommand(jsEngine)); |