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

Unified Diff: chrome/browser/diagnostics/sqlite_diagnostics.cc

Issue 9365030: More SQL statement usage regularization. Back-touch some (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix log messages Created 8 years, 10 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
Index: chrome/browser/diagnostics/sqlite_diagnostics.cc
diff --git a/chrome/browser/diagnostics/sqlite_diagnostics.cc b/chrome/browser/diagnostics/sqlite_diagnostics.cc
index 686a2c3123fb3f136d9a4d48ba78134455ad2fc2..09c837f5c89f751fda9d204a5a45653f7586cb10 100644
--- a/chrome/browser/diagnostics/sqlite_diagnostics.cc
+++ b/chrome/browser/diagnostics/sqlite_diagnostics.cc
@@ -53,7 +53,7 @@ class SqliteIntegrityTest : public DiagnosticTest {
return true;
}
sql::Statement s(db.GetUniqueStatement("PRAGMA integrity_check;"));
- if (!s) {
+ if (!s.is_valid()) {
int error = db.GetErrorCode();
if (SQLITE_BUSY == error) {
RecordFailure(ASCIIToUTF16("DB locked by another process"));

Powered by Google App Engine
This is Rietveld 408576698