Index: content/browser/indexed_db/indexed_db_factory.cc |
diff --git a/content/browser/indexed_db/indexed_db_factory.cc b/content/browser/indexed_db/indexed_db_factory.cc |
index bf6e0b9dfd5bb3272381499e4ea931fd7fbd228e..dccec5f58121164cfd2d91ef1474d3dde01115f5 100644 |
--- a/content/browser/indexed_db/indexed_db_factory.cc |
+++ b/content/browser/indexed_db/indexed_db_factory.cc |
@@ -13,6 +13,7 @@ |
#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; |
@@ -250,7 +251,7 @@ void IndexedDBFactory::DeleteDatabase( |
"Internal error creating database backend for " |
"indexedDB.deleteDatabase.")); |
callbacks->OnError(error); |
- if (s.IsCorruption()) |
+ if (leveldb_env::IsCorruption(s)) |
HandleBackingStoreCorruption(origin_url, error); |
return; |
} |
@@ -436,7 +437,7 @@ void IndexedDBFactory::Open(const base::string16& name, |
"database backend for " |
"indexedDB.open.")); |
connection.callbacks->OnError(error); |
- if (s.IsCorruption()) { |
+ if (leveldb_env::IsCorruption(s)) { |
backing_store = NULL; // Closes the LevelDB so that it can be deleted |
HandleBackingStoreCorruption(origin_url, error); |
} |