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

Unified Diff: src/JsEngine.cpp

Issue 29499592: Issue 5183 - remove synchronous FileSystem interface and stop exposing of DefaultFileSystem (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: Created July 27, 2017, 9:17 a.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 | « src/FileSystemJsObject.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/JsEngine.cpp
diff --git a/src/JsEngine.cpp b/src/JsEngine.cpp
index d1ce0c362c70fa3459421f7f08ef3d2cf327ef5b..8fa65e10b7f93f197cc76fca7b5ac790061ed26c 100644
--- a/src/JsEngine.cpp
+++ b/src/JsEngine.cpp
@@ -22,6 +22,7 @@
#include "Utils.h"
#include "DefaultTimer.h"
#include "DefaultWebRequest.h"
+#include "DefaultFileSystem.h"
#include <libplatform/libplatform.h>
namespace
@@ -81,7 +82,7 @@ TimerPtr AdblockPlus::CreateDefaultTimer()
FileSystemPtr AdblockPlus::CreateDefaultFileSystem()
{
- return FileSystemPtr(new DefaultFileSystem(std::make_shared<DefaultFileSystemSync>()));
+ return FileSystemPtr(new DefaultFileSystem(std::unique_ptr<DefaultFileSystemSync>(new DefaultFileSystemSync())));
}
WebRequestPtr AdblockPlus::CreateDefaultWebRequest()
« no previous file with comments | « src/FileSystemJsObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld