Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: sql/connection.cc

Issue 7552022: Enable SQLite's secure-delete at runtime so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.cc
diff --git a/sql/connection.cc b/sql/connection.cc
index 3f63301ace0115f30add936a3a0639ba52327b77..0f2df97f79b08bb9cf7bda12e803f6a73712e5e8 100644
--- a/sql/connection.cc
+++ b/sql/connection.cc
@@ -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();
Scott Hess - ex-Googler 2011/08/09 20:33:37 NOTREACHED() means you'll never get to the Close()
Paweł Hajdan Jr. 2011/08/09 23:05:00 I used NOTREACHED() because code above uses it. Ho
Scott Hess - ex-Googler 2011/08/09 23:13:44 Doh! You're right, for some reason I was thinking
+ Close();
+ return false;
+ }
+
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698