summaryrefslogtreecommitdiffstats
path: root/chrome/browser/diagnostics
diff options
context:
space:
mode:
authorgbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-18 08:26:09 +0000
committergbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-18 08:26:09 +0000
commit955a44a7c117a4ba88451d52dbcd219dde9603dd (patch)
treeb345200aec7f88c5415b2648d81bcdfb6a237be0 /chrome/browser/diagnostics
parent8331358015ea0c569f4c7d7ffd49ad013b1bbeea (diff)
downloadchromium_src-955a44a7c117a4ba88451d52dbcd219dde9603dd.zip
chromium_src-955a44a7c117a4ba88451d52dbcd219dde9603dd.tar.gz
chromium_src-955a44a7c117a4ba88451d52dbcd219dde9603dd.tar.bz2
More SQL statement usage regularization. Back-touch some
already-edited files to standardize usage. R=shess@chromium.org BUG=None TEST=None Review URL: http://codereview.chromium.org/9365030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122692 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/diagnostics')
-rw-r--r--chrome/browser/diagnostics/sqlite_diagnostics.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/diagnostics/sqlite_diagnostics.cc b/chrome/browser/diagnostics/sqlite_diagnostics.cc
index 1e58591..3fba29e 100644
--- a/chrome/browser/diagnostics/sqlite_diagnostics.cc
+++ b/chrome/browser/diagnostics/sqlite_diagnostics.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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"));