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

Unified Diff: content/child/database_util.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
« no previous file with comments | « no previous file | content/child/db_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/database_util.cc
diff --git a/content/child/database_util.cc b/content/child/database_util.cc
index 2dd4754a24962f6bfcaeae3a3f6566848f43b921..7de4e50c57e3269bccf1cfeeb66087d62b0114b7 100644
--- a/content/child/database_util.cc
+++ b/content/child/database_util.cc
@@ -24,7 +24,7 @@ Platform::FileHandle DatabaseUtil::DatabaseOpenFile(
IPC::InvalidPlatformFileForTransit();
sync_message_filter->Send(new DatabaseHostMsg_OpenFile(
- vfs_file_name, desired_flags, &file_handle));
+ vfs_file_name.utf16(), desired_flags, &file_handle));
return IPC::PlatformFileForTransitToPlatformFile(file_handle);
}
@@ -35,7 +35,7 @@ int DatabaseUtil::DatabaseDeleteFile(
IPC::SyncMessageFilter* sync_message_filter) {
int rv = SQLITE_IOERR_DELETE;
sync_message_filter->Send(
- new DatabaseHostMsg_DeleteFile(vfs_file_name, sync_dir, &rv));
+ new DatabaseHostMsg_DeleteFile(vfs_file_name.utf16(), sync_dir, &rv));
return rv;
}
@@ -44,7 +44,7 @@ long DatabaseUtil::DatabaseGetFileAttributes(
IPC::SyncMessageFilter* sync_message_filter) {
int32_t rv = -1;
sync_message_filter->Send(
- new DatabaseHostMsg_GetFileAttributes(vfs_file_name, &rv));
+ new DatabaseHostMsg_GetFileAttributes(vfs_file_name.utf16(), &rv));
return rv;
}
@@ -53,7 +53,7 @@ long long DatabaseUtil::DatabaseGetFileSize(
IPC::SyncMessageFilter* sync_message_filter) {
int64_t rv = 0LL;
sync_message_filter->Send(
- new DatabaseHostMsg_GetFileSize(vfs_file_name, &rv));
+ new DatabaseHostMsg_GetFileSize(vfs_file_name.utf16(), &rv));
return rv;
}
@@ -71,7 +71,7 @@ bool DatabaseUtil::DatabaseSetFileSize(
IPC::SyncMessageFilter* sync_message_filter) {
bool rv = false;
sync_message_filter->Send(
- new DatabaseHostMsg_SetFileSize(vfs_file_name, size, &rv));
+ new DatabaseHostMsg_SetFileSize(vfs_file_name.utf16(), size, &rv));
return rv;
}
« no previous file with comments | « no previous file | content/child/db_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698