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

Unified Diff: webkit/glue/webfilesystem_impl.cc

Issue 2847056: Implement WebFileSystemImpl::directoryName. This is needed for directory upl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webfilesystem_impl.cc
===================================================================
--- webkit/glue/webfilesystem_impl.cc (revision 52083)
+++ webkit/glue/webfilesystem_impl.cc (working copy)
@@ -59,8 +59,8 @@
}
WebString WebFileSystemImpl::directoryName(const WebString& path) {
- NOTREACHED();
- return WebString();
+ FilePath file_path(WebStringToFilePathString(path));
+ return FilePathToWebString(file_path.DirName());
}
WebString WebFileSystemImpl::pathByAppendingComponent(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698