summaryrefslogtreecommitdiffstats
path: root/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/local_discovery/storage/privet_filesystem_backend.cc')
-rw-r--r--chrome/browser/local_discovery/storage/privet_filesystem_backend.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc b/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc
index 0d25177..70433cd 100644
--- a/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc
+++ b/chrome/browser/local_discovery/storage/privet_filesystem_backend.cc
@@ -9,6 +9,7 @@
#include "chrome/browser/local_discovery/storage/privet_filesystem_async_util.h"
#include "chrome/browser/local_discovery/storage/privet_filesystem_constants.h"
#include "webkit/browser/fileapi/file_system_operation.h"
+#include "webkit/browser/fileapi/file_system_url.h"
namespace local_discovery {
@@ -35,15 +36,14 @@ void PrivetFileSystemBackend::Initialize(fileapi::FileSystemContext* context) {
base::FilePath(kPrivetFilePath));
}
-void PrivetFileSystemBackend::OpenFileSystem(
- const GURL& origin_url,
- fileapi::FileSystemType type,
+void PrivetFileSystemBackend::ResolveURL(
+ const fileapi::FileSystemURL& url,
fileapi::OpenFileSystemMode mode,
const OpenFileSystemCallback& callback) {
- // Copied from src/chrome/browser/chromeos/fileapi/file_system_backend.cc
- // This is deprecated for non-sandboxed filesystems.
- NOTREACHED();
- callback.Run(GURL(), std::string(), base::File::FILE_ERROR_SECURITY);
+ // TODO(noamsml): Provide a proper root url and a proper name.
+ GURL root_url = GURL(
+ fileapi::GetExternalFileSystemRootURIString(url.origin(), std::string()));
+ callback.Run(root_url, std::string(), base::File::FILE_OK);
}
fileapi::FileSystemQuotaUtil* PrivetFileSystemBackend::GetQuotaUtil() {