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

Issue 7552022: Enable SQLite's secure-delete at runtime so that (Closed)

Created:
9 years, 4 months ago by Paweł Hajdan Jr.
Modified:
9 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96095

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M sql/connection.cc View 1 chunk +6 lines, -0 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
Paweł Hajdan Jr.
By the way, there seems to be a lot of duplication in chrome/common/sqlite_utils. Would it ...
9 years, 4 months ago (2011-08-09 18:42:11 UTC) #1
Scott Hess - ex-Googler
http://codereview.chromium.org/7552022/diff/1/sql/connection.cc File sql/connection.cc (right): http://codereview.chromium.org/7552022/diff/1/sql/connection.cc#newcode380 sql/connection.cc:380: NOTREACHED() << "Could not enable secure_delete: " << GetErrorMessage(); ...
9 years, 4 months ago (2011-08-09 20:33:37 UTC) #2
Paweł Hajdan Jr.
http://codereview.chromium.org/7552022/diff/1/sql/connection.cc File sql/connection.cc (right): http://codereview.chromium.org/7552022/diff/1/sql/connection.cc#newcode380 sql/connection.cc:380: NOTREACHED() << "Could not enable secure_delete: " << GetErrorMessage(); ...
9 years, 4 months ago (2011-08-09 23:05:00 UTC) #3
Scott Hess - ex-Googler
9 years, 4 months ago (2011-08-09 23:13:43 UTC) #4
lgtm

http://codereview.chromium.org/7552022/diff/1/sql/connection.cc
File sql/connection.cc (right):

http://codereview.chromium.org/7552022/diff/1/sql/connection.cc#newcode380
sql/connection.cc:380: NOTREACHED() << "Could not enable secure_delete: " <<
GetErrorMessage();
On 2011/08/09 23:05:00, Paweł Hajdan Jr. wrote:
> On 2011/08/09 20:33:37, shess wrote:
> > NOTREACHED() means you'll never get to the Close() and false return.
> 
> I used NOTREACHED() because code above uses it. However, NOTREACHED() will not
> fire in Release mode, and in this case I believe it's really important to
ensure
> we succeed with running this pragma.

Doh!  You're right, for some reason I was thinking it did a CHECK() not a
DCHECK().

> > Also, is it possible/likely that Chromium will be linked with versions of
SQLite
> > which do not support this pragma?
> 
> Possible, but not likely. If some distro breaks it it's their fault. And
distros
> do their testing too. It's only important to make it fail loudly, i.e. fail
the
> connection instead of just logging somewhere where possibly nobody is looking.

OK.  As long as the case was realized.

Powered by Google App Engine
This is Rietveld 408576698