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

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

Issue 301973008: Revert 273757 "Change instances of s.IsCorruption() to leveldb_e..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 273772)
+++ trunk/src/content/browser/indexed_db/indexed_db_factory.cc (working copy)
@@ -13,7 +13,6 @@
#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"
-#include "third_party/leveldatabase/env_chromium.h"
#include "webkit/common/database/database_identifier.h"
using base::ASCIIToUTF16;
@@ -251,7 +250,7 @@
"Internal error creating database backend for "
"indexedDB.deleteDatabase."));
callbacks->OnError(error);
- if (leveldb_env::IsCorruption(s))
+ if (s.IsCorruption())
HandleBackingStoreCorruption(origin_url, error);
return;
}
@@ -437,7 +436,7 @@
"database backend for "
"indexedDB.open."));
connection.callbacks->OnError(error);
- if (leveldb_env::IsCorruption(s)) {
+ if (s.IsCorruption()) {
backing_store = NULL; // Closes the LevelDB so that it can be deleted
HandleBackingStoreCorruption(origin_url, error);
}

Powered by Google App Engine
This is Rietveld 408576698