| Index: chrome/browser/history/download_database.cc
|
| diff --git a/chrome/browser/history/download_database.cc b/chrome/browser/history/download_database.cc
|
| index 5508796d4c911888aed3c9db5dd66c5ab68bf971..f56cff7042a82c74d8cb31289c5842fe4214c421 100644
|
| --- a/chrome/browser/history/download_database.cc
|
| +++ b/chrome/browser/history/download_database.cc
|
| @@ -59,10 +59,10 @@ FilePath ColumnFilePath(sql::Statement& statement, int col) {
|
|
|
| // See above.
|
| void BindFilePath(sql::Statement& statement, const FilePath& path, int col) {
|
| - statement.BindString(col, UTF16ToUTF8(path.value()));
|
| + statement.BindString16(col, path.value());
|
| }
|
| FilePath ColumnFilePath(sql::Statement& statement, int col) {
|
| - return FilePath(UTF8ToUTF16(statement.ColumnString(col)));
|
| + return FilePath(statement.ColumnString16(col));
|
| }
|
|
|
| #endif
|
| @@ -225,9 +225,11 @@ int64 DownloadDatabase::CreateDownload(
|
|
|
| void DownloadDatabase::RemoveDownload(DownloadID db_handle) {
|
| CheckThread();
|
| +
|
| sql::Statement statement(GetDB().GetCachedStatement(SQL_FROM_HERE,
|
| "DELETE FROM downloads WHERE id=?"));
|
| statement.BindInt64(0, db_handle);
|
| +
|
| statement.Run();
|
| }
|
|
|
|
|