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

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: Merge to head 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 1e58591275c2da4ec5b4fcbb08c9ea1d2cc2345a..7f2e6f5ba63314bec86afdf31ff49d34c5ef2cf0 100644
--- a/chrome/browser/diagnostics/sqlite_diagnostics.cc
+++ b/chrome/browser/diagnostics/sqlite_diagnostics.cc
@@ -54,7 +54,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"));
« no previous file with comments | « chrome/browser/autocomplete/network_action_predictor_database.cc ('k') | chrome/browser/history/download_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698