Index: content/browser/indexed_db/indexed_db_callbacks_wrapper.cc |
diff --git a/content/browser/indexed_db/indexed_db_callbacks_wrapper.cc b/content/browser/indexed_db/indexed_db_callbacks_wrapper.cc |
index 3646736cb92655414f57ded8354ce405612e2cc9..9d999c051750903407d9621b3439a38977cc98a3 100644 |
--- a/content/browser/indexed_db/indexed_db_callbacks_wrapper.cc |
+++ b/content/browser/indexed_db/indexed_db_callbacks_wrapper.cc |
@@ -12,6 +12,8 @@ |
namespace content { |
+using WebKit::WebIDBCallbacks; |
+ |
IndexedDBCallbacksWrapper::IndexedDBCallbacksWrapper( |
IndexedDBCallbacksBase* callbacks) |
: callbacks_(callbacks), did_complete_(false), did_create_proxy_(false) {} |
@@ -100,13 +102,15 @@ void IndexedDBCallbacksWrapper::OnBlocked(int64 existing_version) { |
void IndexedDBCallbacksWrapper::OnUpgradeNeeded( |
int64 old_version, |
scoped_refptr<IndexedDBDatabase> database, |
- const IndexedDBDatabaseMetadata& metadata) { |
+ const IndexedDBDatabaseMetadata& metadata, |
+ WebIDBCallbacks::DataLoss data_loss) { |
DCHECK(callbacks_); |
did_create_proxy_ = true; |
callbacks_->onUpgradeNeeded( |
old_version, |
new WebIDBDatabaseImpl(database, database_callbacks_), |
- metadata); |
+ metadata, |
+ data_loss); |
database_callbacks_ = NULL; |
} |