Index: chrome/browser/history/download_database.cc |
=================================================================== |
--- chrome/browser/history/download_database.cc (revision 7599) |
+++ chrome/browser/history/download_database.cc (working copy) |
@@ -69,7 +69,8 @@ |
while (statement->step() == SQLITE_ROW) { |
DownloadCreateInfo info; |
info.db_handle = statement->column_int64(0); |
- statement->column_string16(1, &info.path); |
+ std::wstring path_str = info.path.ToWStringHack(); |
+ statement->column_string16(1, &path_str); |
statement->column_string16(2, &info.url); |
info.start_time = Time::FromTimeT(statement->column_int64(3)); |
info.received_bytes = statement->column_int64(4); |
@@ -117,7 +118,7 @@ |
if (!statement.is_valid()) |
return 0; |
- statement->bind_wstring(0, info.path); |
+ statement->bind_wstring(0, info.path.ToWStringHack()); |
statement->bind_wstring(1, info.url); |
statement->bind_int64(2, info.start_time.ToTimeT()); |
statement->bind_int64(3, info.received_bytes); |