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

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: 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..7b7d6c12f65a2fdc8f67b281ad84d32fb40da5ae 100644
--- a/content/browser/indexed_db/indexed_db_dispatcher_host.cc
+++ b/content/browser/indexed_db/indexed_db_dispatcher_host.cc
@@ -872,7 +872,10 @@ 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);
+ if (s.ok())
jsbell 2014/04/14 20:44:20 This test seems backwards?
cmumford 2014/04/14 23:39:23 You are correct - thx!
+ DLOG(ERROR) << "Unable to reset prefetch";
jsbell 2014/04/14 20:44:20 Should there be a TODO to do more here?
cmumford 2014/04/14 23:39:23 Done.
}
void IndexedDBDispatcherHost::CursorDispatcherHost::OnDestroyed(

Powered by Google App Engine
This is Rietveld 408576698