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

Unified Diff: content/browser/indexed_db/indexed_db_callbacks_wrapper.cc

Issue 17033004: Tell IDB frontend about data loss (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove debug 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/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 3baea3e04934925969a28f499922305015680a29..6cb5a7bc28b632c3085cb4bbbef39ce13c3420de 100644
--- a/content/browser/indexed_db/indexed_db_callbacks_wrapper.cc
+++ b/content/browser/indexed_db/indexed_db_callbacks_wrapper.cc
@@ -114,13 +114,15 @@ void IndexedDBCallbacksWrapper::OnBlocked(int64 existing_version) {
void IndexedDBCallbacksWrapper::OnUpgradeNeeded(
int64 old_version,
scoped_refptr<IndexedDBDatabase> database,
- const IndexedDBDatabaseMetadata& metadata) {
+ const IndexedDBDatabaseMetadata& metadata,
+ bool data_loss) {
DCHECK(callbacks_);
did_create_proxy_ = true;
callbacks_->onUpgradeNeeded(
old_version,
new WebIDBDatabaseImpl(database, database_callbacks_),
- metadata);
+ metadata,
+ data_loss);
database_callbacks_ = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698