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

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

Issue 1106703003: Revert of Optimizes the operation of DeleteDatabase when no backing store exists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/browser/indexed_db/indexed_db_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_factory_impl.cc
diff --git a/content/browser/indexed_db/indexed_db_factory_impl.cc b/content/browser/indexed_db/indexed_db_factory_impl.cc
index 039cbddfbbf121826def25edb702623d1b52e4bc..f818f3f6181f7adff689abe7ec8308c47d497cfd 100644
--- a/content/browser/indexed_db/indexed_db_factory_impl.cc
+++ b/content/browser/indexed_db/indexed_db_factory_impl.cc
@@ -254,26 +254,6 @@
if (s.IsCorruption()) {
HandleBackingStoreCorruption(origin_url, error);
}
- return;
- }
-
- std::vector<base::string16> names = backing_store->GetDatabaseNames(&s);
- if (!s.ok()) {
- DLOG(ERROR) << "Internal error getting database names";
- IndexedDBDatabaseError error(blink::WebIDBDatabaseExceptionUnknownError,
- "Internal error opening backing store for "
- "indexedDB.deleteDatabase.");
- callbacks->OnError(error);
- backing_store = NULL;
- if (s.IsCorruption())
- HandleBackingStoreCorruption(origin_url, error);
- return;
- }
- if (!ContainsValue(names, name)) {
- const int64 version = 0;
- callbacks->OnSuccess(version);
- backing_store = NULL;
- ReleaseBackingStore(origin_url, false /* immediate */);
return;
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698