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

Unified Diff: trunk/src/content/browser/indexed_db/indexed_db_factory.cc

Issue 216433007: Revert 260147 "Handling LevelDB errors encountered after open." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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: trunk/src/content/browser/indexed_db/indexed_db_factory.cc
===================================================================
--- trunk/src/content/browser/indexed_db/indexed_db_factory.cc (revision 260206)
+++ trunk/src/content/browser/indexed_db/indexed_db_factory.cc (working copy)
@@ -9,7 +9,6 @@
#include "base/time/time.h"
#include "content/browser/indexed_db/indexed_db_backing_store.h"
#include "content/browser/indexed_db/indexed_db_context_impl.h"
-#include "content/browser/indexed_db/indexed_db_database_error.h"
#include "content/browser/indexed_db/indexed_db_tracing.h"
#include "content/browser/indexed_db/indexed_db_transaction_coordinator.h"
#include "third_party/WebKit/public/platform/WebIDBDatabaseException.h"
@@ -235,24 +234,6 @@
IndexedDBContextImpl::FORCE_CLOSE_BACKING_STORE_FAILURE);
}
-void IndexedDBFactory::HandleBackingStoreCorruption(
- const GURL& origin_url,
- const IndexedDBDatabaseError& error) {
- // Make a copy of origin_url as this is likely a reference to a member of a
- // backing store which this function will be deleting.
- GURL saved_origin_url(origin_url);
- DCHECK(context_);
- base::FilePath path_base = context_->data_path();
- IndexedDBBackingStore::RecordCorruptionInfo(
- path_base, saved_origin_url, base::UTF16ToUTF8(error.message()));
- HandleBackingStoreFailure(saved_origin_url);
- // Note: DestroyBackingStore only deletes LevelDB files, leaving all others,
- // so our corruption info file will remain.
- if (!IndexedDBBackingStore::DestroyBackingStore(path_base, saved_origin_url)
- .ok())
- DLOG(ERROR) << "Unable to delete backing store";
-}
-
bool IndexedDBFactory::IsDatabaseOpen(const GURL& origin_url,
const base::string16& name) const {

Powered by Google App Engine
This is Rietveld 408576698