summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-17 16:50:13 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-17 16:50:13 +0000
commit907ae6adcdf248d7d184b4970af0bb355300af73 (patch)
tree3d81b33ff059f188fec7136cac1c7dda8049f940 /webkit
parent2b0a76d0e6139fddae3266729f69bdf867ef049d (diff)
downloadchromium_src-907ae6adcdf248d7d184b4970af0bb355300af73.zip
chromium_src-907ae6adcdf248d7d184b4970af0bb355300af73.tar.gz
chromium_src-907ae6adcdf248d7d184b4970af0bb355300af73.tar.bz2
Implement WebFileSystemImpl::directoryName. This is needed for directory upload (including webkit layout tests).
BUG=41762 TEST=webkit layout test fast/forms/input-file-directory-upload.html Review URL: http://codereview.chromium.org/2847056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52829 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webfilesystem_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/glue/webfilesystem_impl.cc b/webkit/glue/webfilesystem_impl.cc
index 0573045..585287b 100644
--- a/webkit/glue/webfilesystem_impl.cc
+++ b/webkit/glue/webfilesystem_impl.cc
@@ -59,8 +59,8 @@ bool WebFileSystemImpl::getFileModificationTime(const WebString& path,
}
WebString WebFileSystemImpl::directoryName(const WebString& path) {
- NOTREACHED();
- return WebString();
+ FilePath file_path(WebStringToFilePathString(path));
+ return FilePathToWebString(file_path.DirName());
}
WebString WebFileSystemImpl::pathByAppendingComponent(