Commit 5f9bd41f authored by Scott Graham's avatar Scott Graham Committed by Commit Bot

fuchsia: Use UTF8 filename path for in_memory_database

Bug: 808287
Change-Id: I412c47c632f3dc3042e324939e9a241522cb7a33
Reviewed-on: https://chromium-review.googlesource.com/c/1297277Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Scott Graham <scottmg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602498}
parent 3629d825
......@@ -68,7 +68,7 @@ bool InMemoryDatabase::InitFromDisk(const base::FilePath& history_name) {
// Attach to the history database on disk. (We can't ATTACH in the middle of
// a transaction.)
sql::Statement attach(GetDB().GetUniqueStatement("ATTACH ? AS history"));
#if defined(OS_POSIX)
#if defined(OS_POSIX) || defined(OS_FUCHSIA)
attach.BindString(0, history_name.value());
#else
attach.BindString(0, base::WideToUTF8(history_name.value()));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment