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

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

Issue 2109273002: IndexedDB: Created IndexedDBDataLossInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: initializing data loss in IndexedDBBackingStore::Open Created 4 years, 5 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_database.cc
diff --git a/content/browser/indexed_db/indexed_db_database.cc b/content/browser/indexed_db/indexed_db_database.cc
index 3b4b71737248a3367b4c17a5c79019b3527f3d03..82f3609c0f90247815c1a307c79dab83657b4e1e 100644
--- a/content/browser/indexed_db/indexed_db_database.cc
+++ b/content/browser/indexed_db/indexed_db_database.cc
@@ -1740,7 +1740,8 @@ void IndexedDBDatabase::OpenConnection(
// The backing store only detects data loss when it is first opened. The
// presence of existing connections means we didn't even check for data loss
// so there'd better not be any.
- DCHECK_NE(blink::WebIDBDataLossTotal, connection.callbacks->data_loss());
+ DCHECK_NE(blink::WebIDBDataLossTotal,
+ connection.callbacks->data_loss_info().status);
pending_open_calls_.push(connection);
return;
}
@@ -1830,7 +1831,7 @@ void IndexedDBDatabase::RunVersionChangeTransaction(
DCHECK(callbacks.get());
DCHECK(connections_.count(connection.get()));
if (ConnectionCount() > 1) {
- DCHECK_NE(blink::WebIDBDataLossTotal, callbacks->data_loss());
+ DCHECK_NE(blink::WebIDBDataLossTotal, callbacks->data_loss_info().status);
// Front end ensures the event is not fired at connections that have
// close_pending set.
for (const auto* iter : connections_) {
« no previous file with comments | « content/browser/indexed_db/indexed_db_cleanup_on_io_error_unittest.cc ('k') | content/browser/indexed_db/indexed_db_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698