Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: content/child/indexed_db/indexed_db_dispatcher.cc

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DataLoss prefix Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/indexed_db/indexed_db_dispatcher.cc
diff --git a/content/child/indexed_db/indexed_db_dispatcher.cc b/content/child/indexed_db/indexed_db_dispatcher.cc
index 6d35412f735cf9f432d1a64fb1f85fb26ee3d213..28847591e3a7419469b5976f70d077d936f829d8 100644
--- a/content/child/indexed_db/indexed_db_dispatcher.cc
+++ b/content/child/indexed_db/indexed_db_dispatcher.cc
@@ -637,7 +637,10 @@ void IndexedDBDispatcher::OnUpgradeNeeded(
databases_[p.ipc_database_id] = new RendererWebIDBDatabaseImpl(
p.ipc_database_id, p.ipc_database_callbacks_id);
callbacks->onUpgradeNeeded(
- p.old_version, databases_[p.ipc_database_id], metadata);
+ p.old_version,
+ databases_[p.ipc_database_id],
+ metadata,
+ static_cast<WebIDBCallbacks::DataLoss>(p.data_loss));
}
void IndexedDBDispatcher::OnError(int32 ipc_thread_id,

Powered by Google App Engine
This is Rietveld 408576698