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

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: ToT 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
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory.cc ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9724bfd051b8b81df2b6ed5f5d4d0565e50a8729..8e53b1c1bc77ee9e938a3d3f9c801da7991b589f 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,
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory.cc ('k') | content/common/indexed_db/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698