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

Unified Diff: content/child/webfileutilities_impl.cc

Issue 2586483002: Use explicit WebString <-> string16 conversion methods in storage API files (Closed)
Patch Set: '' Created 4 years 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: content/child/webfileutilities_impl.cc
diff --git a/content/child/webfileutilities_impl.cc b/content/child/webfileutilities_impl.cc
index 268ed0910607d3ca5f21787238c13ab5ee7b0e8f..64ee0b6bea47046c4ce0080b977630b77ebec6de 100644
--- a/content/child/webfileutilities_impl.cc
+++ b/content/child/webfileutilities_impl.cc
@@ -43,11 +43,12 @@ bool WebFileUtilitiesImpl::getFileInfo(const WebString& path,
}
WebString WebFileUtilitiesImpl::directoryName(const WebString& path) {
- return blink::WebStringToFilePath(path).DirName().AsUTF16Unsafe();
+ return blink::FilePathToWebString(blink::WebStringToFilePath(path).DirName());
}
WebString WebFileUtilitiesImpl::baseName(const WebString& path) {
- return blink::WebStringToFilePath(path).BaseName().AsUTF16Unsafe();
+ return blink::FilePathToWebString(
+ blink::WebStringToFilePath(path).BaseName());
}
blink::WebURL WebFileUtilitiesImpl::filePathToURL(const WebString& path) {
« no previous file with comments | « content/child/web_database_observer_impl.cc ('k') | third_party/WebKit/Source/platform/exported/FilePathConversion.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698