Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1156)

Unified Diff: Source/modules/filesystem/DOMWindowFileSystem.cpp

Issue 23537011: FileAPI: Add WebFileSystem::resolveURL (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/modules/filesystem/DOMWindowFileSystem.cpp
diff --git a/Source/modules/filesystem/DOMWindowFileSystem.cpp b/Source/modules/filesystem/DOMWindowFileSystem.cpp
index 0cb81c4c00b95499efef6319bcd5f19fcf5d2bc5..45ede54b955aa2bc0bcbb7bd11fbad5837da585f 100644
--- a/Source/modules/filesystem/DOMWindowFileSystem.cpp
+++ b/Source/modules/filesystem/DOMWindowFileSystem.cpp
@@ -87,14 +87,12 @@ void DOMWindowFileSystem::webkitResolveLocalFileSystemURL(DOMWindow* window, con
return;
}
- FileSystemType type;
- String filePath;
- if (!completedURL.isValid() || !DOMFileSystemBase::crackFileSystemURL(completedURL, type, filePath)) {
+ if (!completedURL.isValid()) {
DOMFileSystem::scheduleCallback(document, errorCallback, FileError::create(FileError::ENCODING_ERR));
return;
}
- LocalFileSystem::from(document)->readFileSystem(document, type, ResolveURICallbacks::create(successCallback, errorCallback, document, type, filePath));
+ LocalFileSystem::from(document)->resolveURL(document, completedURL, ResolveURICallbacks::create(successCallback, errorCallback, document));
}
COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<int>(FileSystemTypeTemporary), enum_mismatch);

Powered by Google App Engine
This is Rietveld 408576698