summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history/download_database.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/history/download_database.cc')
-rw-r--r--chrome/browser/history/download_database.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/history/download_database.cc b/chrome/browser/history/download_database.cc
index f1dcbce..d6f77b6 100644
--- a/chrome/browser/history/download_database.cc
+++ b/chrome/browser/history/download_database.cc
@@ -69,7 +69,8 @@ void DownloadDatabase::QueryDownloads(std::vector<DownloadCreateInfo>* results)
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 @@ int64 DownloadDatabase::CreateDownload(const DownloadCreateInfo& info) {
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);