Don't delete leveldb directory if disk was full.
commitd05869d38687c55c21433254ddc6ef02b3c0ed4e
authordgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 7 Jun 2013 22:32:49 +0000 (7 22:32 +0000)
committerdgrogan@chromium.org <dgrogan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 7 Jun 2013 22:32:49 +0000 (7 22:32 +0000)
tree0c8e914e0943fa3f55e952820f45f96e3a807f0c
parentd2d79d501a2fdfd01ad1bcc96e4c54549860abe6
Don't delete leveldb directory if disk was full.

Also, equally as important, don't count a full disk as a corruption.

This patch's functionality was added to IDB in blink, but after the IDB
team forked the blink code to port to chromium.
See http://src.chromium.org/viewvc/blink?view=rev&rev=150406 for the
original blink patch.

BUG=239882

Review URL: https://chromiumcodereview.appspot.com/16409006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@204963 0039d316-1c4b-4281-b951-d872f2087c98
content/browser/indexed_db/indexed_db_backing_store.cc
content/browser/indexed_db/indexed_db_backing_store.h
content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc
content/browser/indexed_db/leveldb/leveldb_database.cc
content/browser/indexed_db/leveldb/leveldb_database.h