Enable SQLite's secure-delete at runtime so that

we don't need to rely on system SQLite being compiled
with specific flags.

BUG=22208

Review URL: http://codereview.chromium.org/7552022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96095 0039d316-1c4b-4281-b951-d872f2087c98
parent 2bbd2c67
......@@ -376,6 +376,12 @@ bool Connection::OpenInternal(const std::string& file_name) {
NOTREACHED() << "Could not set cache size: " << GetErrorMessage();
}
if (!ExecuteWithTimeout("PRAGMA secure_delete=ON", kBusyTimeout)) {
NOTREACHED() << "Could not enable secure_delete: " << GetErrorMessage();
Close();
return false;
}
return true;
}
......
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