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

Unified Diff: content/child/webfileutilities_impl.cc

Issue 2537953003: WebString: makes string16 conversions explicit (part 1: blink, content) (Closed)
Patch Set: fix 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
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | content/child/webmessageportchannel_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_url_request_util.cc ('k') | content/child/webmessageportchannel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698