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

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

Issue 237143006: Make iterating over a corrupted IndexedDB fail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Status checks. Created 6 years, 8 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_dispatcher_host.cc
diff --git a/content/browser/indexed_db/indexed_db_dispatcher_host.cc b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
index b627393c8de2635f504d0d9d4b5a5fc710dc238b..ecc5ff9594b9db7263393ced4d928e7d8664cc81 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -872,7 +872,11 @@ void IndexedDBDispatcherHost::CursorDispatcherHost::OnPrefetchReset(
if (!idb_cursor)
return;
- idb_cursor->PrefetchReset(used_prefetches, unused_prefetches);
+ leveldb::Status s =
+ idb_cursor->PrefetchReset(used_prefetches, unused_prefetches);
+ // TODO(cmumford): Handle this error (crbug.com/363397)
+ if (!s.ok())
+ DLOG(ERROR) << "Unable to reset prefetch";
}
void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(

Powered by Google App Engine
This is Rietveld 408576698