summaryrefslogtreecommitdiffstats
path: root/webkit/support
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 00:31:19 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-10 00:31:19 +0000
commitf0bc50e546b3beacc7d497da284bb1cda9c26901 (patch)
treece007121dbf693f0c85069a084cdd7f35db5e314 /webkit/support
parent4b50cb5974b9465055113a92494ec68fe0a33ea8 (diff)
downloadchromium_src-f0bc50e546b3beacc7d497da284bb1cda9c26901.zip
chromium_src-f0bc50e546b3beacc7d497da284bb1cda9c26901.tar.gz
chromium_src-f0bc50e546b3beacc7d497da284bb1cda9c26901.tar.bz2
web databases: remove a ToWStringHack
BUG=69467 Review URL: http://codereview.chromium.org/6646028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77560 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support')
-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(