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); |
} |