Skip to content

Commit

Permalink
fixup! Fix #5018: migrate websql data
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang committed Jun 24, 2016
1 parent 9ed0209 commit e925644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nw_content.cc
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ int MainPartsPreCreateThreadsHook() {
if (!base::PathExists(new_websql_dir.DirName())) {
base::CreateDirectory(new_websql_dir.DirName());
base::CopyDirectory(old_websqldir, new_websql_dir.DirName().DirName(), true);
base::Move(new_websql_dir.DirName().Append(FILE_PATH_LITERAL(old_id)), new_websql_dir);
base::Move(new_websql_dir.DirName().Append(base::FilePath::FromUTF8Unsafe(old_id)), new_websql_dir);
base::FilePath metadb_path = new_websql_dir.DirName().Append(FILE_PATH_LITERAL("Databases.db"));
sql::Connection metadb;
if (metadb.Open(metadb_path) && sql::MetaTable::DoesTableExist(&metadb)) {
Expand Down

0 comments on commit e925644

Please sign in to comment.