summaryrefslogtreecommitdiffstats
path: root/webkit/support/simple_database_system.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/support/simple_database_system.cc')
-rw-r--r--webkit/support/simple_database_system.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/support/simple_database_system.cc b/webkit/support/simple_database_system.cc
index c1749a5..6c00d6c 100644
--- a/webkit/support/simple_database_system.cc
+++ b/webkit/support/simple_database_system.cc
@@ -177,9 +177,9 @@ void SimpleDatabaseSystem::SetFullFilePathsForVfsFile(
base::AutoLock file_names_auto_lock(file_names_lock_);
file_names_[vfs_file_name] = file_name;
+ DCHECK(file_name.Extension().empty());
file_names_[vfs_file_name + ASCIIToUTF16("-journal")] =
- FilePath::FromWStringHack(file_name.ToWStringHack() +
- ASCIIToWide("-journal"));
+ file_name.InsertBeforeExtensionASCII("-journal");
}
FilePath SimpleDatabaseSystem::GetFullFilePathForVfsFile(