diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 00:16:47 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 00:16:47 +0000 |
commit | c4b7628d0fc77f4c2937914da148e978486ab41c (patch) | |
tree | a21192857ea5d97c1b766575d8f43552f2d51161 /chrome | |
parent | d2d391858e44da8bec20b35e351b572491d82b8c (diff) | |
download | chromium_src-c4b7628d0fc77f4c2937914da148e978486ab41c.zip chromium_src-c4b7628d0fc77f4c2937914da148e978486ab41c.tar.gz chromium_src-c4b7628d0fc77f4c2937914da148e978486ab41c.tar.bz2 |
Remove the CHECK() when SQLite is corrupt.
Got plenty of crashes in 4.0.211.4
BUG=11908
TEST=none
TBR=bretw
Review URL: http://codereview.chromium.org/217007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/sqlite_utils.cc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/chrome/common/sqlite_utils.cc b/chrome/common/sqlite_utils.cc index 61b476b..4b47acd 100644 --- a/chrome/common/sqlite_utils.cc +++ b/chrome/common/sqlite_utils.cc @@ -42,14 +42,7 @@ class ReleaseSQLErrorHandler : public VanillaSQLErrorHandler { public: virtual int HandleError(int error, sqlite3* db) { error_ = error; - // TOD(cpu): Remove this code once it has a few days of air time. - if (error == SQLITE_INTERNAL || - error == SQLITE_NOMEM || - error == SQLITE_CORRUPT || - error == SQLITE_IOERR || - error == SQLITE_CONSTRAINT || - error == SQLITE_NOTADB) - CHECK(false) << "sqlite fatal error " << error; + // Used to have a CHECK here. Got lots of crashes. return error; } }; |