Index: Source/WebCore/Modules/indexeddb/IDBFactoryBackendImpl.cpp |
=================================================================== |
--- Source/WebCore/Modules/indexeddb/IDBFactoryBackendImpl.cpp (revision 119524) |
+++ Source/WebCore/Modules/indexeddb/IDBFactoryBackendImpl.cpp (working copy) |
@@ -129,11 +129,8 @@ |
} |
RefPtr<IDBDatabaseBackendImpl> databaseBackend = IDBDatabaseBackendImpl::create(name, backingStore.get(), m_transactionCoordinator.get(), this, uniqueIdentifier); |
- if (databaseBackend) { |
- m_databaseBackendMap.set(uniqueIdentifier, databaseBackend.get()); |
- databaseBackend->deleteDatabase(callbacks); |
- } else |
- callbacks->onError(IDBDatabaseError::create(IDBDatabaseException::UNKNOWN_ERR, "Internal error.")); |
+ m_databaseBackendMap.set(uniqueIdentifier, databaseBackend.get()); |
+ databaseBackend->deleteDatabase(callbacks); |
} |
PassRefPtr<IDBBackingStore> IDBFactoryBackendImpl::openBackingStore(PassRefPtr<SecurityOrigin> securityOrigin, const String& dataDirectory) |
@@ -180,11 +177,8 @@ |
} |
RefPtr<IDBDatabaseBackendImpl> databaseBackend = IDBDatabaseBackendImpl::create(name, backingStore.get(), m_transactionCoordinator.get(), this, uniqueIdentifier); |
- if (databaseBackend) { |
- callbacks->onSuccess(RefPtr<IDBDatabaseBackendInterface>(databaseBackend.get()).release()); |
- m_databaseBackendMap.set(uniqueIdentifier, databaseBackend.get()); |
- } else |
- callbacks->onError(IDBDatabaseError::create(IDBDatabaseException::UNKNOWN_ERR, "Internal error.")); |
+ callbacks->onSuccess(RefPtr<IDBDatabaseBackendInterface>(databaseBackend.get()).release()); |
+ m_databaseBackendMap.set(uniqueIdentifier, databaseBackend.get()); |
} |
} // namespace WebCore |