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

Unified Diff: content/child/fileapi/webfilesystem_callback_adapters.cc

Issue 16927005: Use {As,From}UTF16Unsafe instead of file_path_string_conversions.{h,cc}. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 | « content/browser/indexed_db/webidbfactory_impl.cc ('k') | content/child/webblobregistry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/webfilesystem_callback_adapters.cc
diff --git a/content/child/fileapi/webfilesystem_callback_adapters.cc b/content/child/fileapi/webfilesystem_callback_adapters.cc
index 5ea4b3c485d04232a46dfc1692124d75b6fbf2fa..c1b610c4d5b0f9223a78fef53c6ae241c344583a 100644
--- a/content/child/fileapi/webfilesystem_callback_adapters.cc
+++ b/content/child/fileapi/webfilesystem_callback_adapters.cc
@@ -14,7 +14,6 @@
#include "third_party/WebKit/public/platform/WebFileInfo.h"
#include "third_party/WebKit/public/platform/WebFileSystem.h"
#include "third_party/WebKit/public/platform/WebString.h"
-#include "webkit/base/file_path_string_conversions.h"
#include "webkit/common/fileapi/directory_entry.h"
#include "webkit/common/fileapi/file_system_util.h"
#include "webkit/glue/webkit_glue.h"
@@ -50,7 +49,7 @@ void CreateSnapshotFileCallbackAdapter(
const base::FilePath& platform_path) {
WebFileInfo web_file_info;
webkit_glue::PlatformFileInfoToWebFileInfo(file_info, &web_file_info);
- web_file_info.platformPath = webkit_base::FilePathToWebString(platform_path);
+ web_file_info.platformPath = platform_path.AsUTF16Unsafe();
callbacks->didCreateSnapshotFile(web_file_info);
}
@@ -61,7 +60,7 @@ void ReadDirectoryCallbackAdapater(
WebVector<WebFileSystemEntry> file_system_entries(entries.size());
for (size_t i = 0; i < entries.size(); i++) {
file_system_entries[i].name =
- webkit_base::FilePathStringToWebString(entries[i].name);
+ base::FilePath(entries[i].name).AsUTF16Unsafe();
file_system_entries[i].isDirectory = entries[i].is_directory;
}
callbacks->didReadDirectory(file_system_entries, has_more);
« no previous file with comments | « content/browser/indexed_db/webidbfactory_impl.cc ('k') | content/child/webblobregistry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698