Index: Source/modules/indexeddb/IDBOpenDBRequest.cpp |
diff --git a/Source/modules/indexeddb/IDBOpenDBRequest.cpp b/Source/modules/indexeddb/IDBOpenDBRequest.cpp |
index 4756e3bc0cc6b82cb742a2853ea249abffd29efe..eac7261d9e4049faeda92c6fc0e734d3dfe80c03 100644 |
--- a/Source/modules/indexeddb/IDBOpenDBRequest.cpp |
+++ b/Source/modules/indexeddb/IDBOpenDBRequest.cpp |
@@ -70,7 +70,7 @@ void IDBOpenDBRequest::onBlocked(int64_t oldVersion) |
enqueueEvent(IDBVersionChangeEvent::create(IDBAny::create(oldVersion), newVersionAny.release(), eventNames().blockedEvent)); |
} |
-void IDBOpenDBRequest::onUpgradeNeeded(int64_t oldVersion, PassRefPtr<IDBDatabaseBackendInterface> prpDatabaseBackend, const IDBDatabaseMetadata& metadata) |
+void IDBOpenDBRequest::onUpgradeNeeded(int64_t oldVersion, PassRefPtr<IDBDatabaseBackendInterface> prpDatabaseBackend, const IDBDatabaseMetadata& metadata, WebKit::WebIDBCallbacks::DataLoss dataLoss) |
{ |
IDB_TRACE("IDBOpenDBRequest::onUpgradeNeeded()"); |
if (m_contextStopped || !scriptExecutionContext()) { |
@@ -103,7 +103,7 @@ void IDBOpenDBRequest::onUpgradeNeeded(int64_t oldVersion, PassRefPtr<IDBDatabas |
if (m_version == IDBDatabaseMetadata::NoIntVersion) |
m_version = 1; |
- enqueueEvent(IDBVersionChangeEvent::create(IDBAny::create(oldVersion), IDBAny::create(m_version), eventNames().upgradeneededEvent)); |
+ enqueueEvent(IDBVersionChangeEvent::create(IDBAny::create(oldVersion), IDBAny::create(m_version), eventNames().upgradeneededEvent, dataLoss)); |
} |
void IDBOpenDBRequest::onSuccess(PassRefPtr<IDBDatabaseBackendInterface> prpBackend, const IDBDatabaseMetadata& metadata) |