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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp

Issue 2818173003: Indexed DB: Remove nonstandard IDBFactory.webkitGetDatabaseNames() (Closed)
Patch Set: Remove content_browsertest for wGDN Created 3 years, 7 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 | « third_party/WebKit/Source/modules/indexeddb/IDBFactory.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
index 61434cea0c3a0c63bd55a810bbbe88dfa7b89232..3aeb5a49662e927a9fbabcaf9f9d78ffbed72c94 100644
--- a/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/InspectorIndexedDBAgent.cpp
@@ -780,14 +780,7 @@ void InspectorIndexedDBAgent::requestDatabaseNames(
return;
}
ScriptState::Scope scope(script_state);
- DummyExceptionStateForTesting exception_state;
- IDBRequest* idb_request =
- idb_factory->getDatabaseNames(script_state, exception_state);
- if (exception_state.HadException()) {
- request_callback->sendFailure(
- Response::Error("Could not obtain database names."));
- return;
- }
+ IDBRequest* idb_request = idb_factory->GetDatabaseNames(script_state);
idb_request->addEventListener(
EventTypeNames::success,
GetDatabaseNamesCallback::Create(
@@ -1021,14 +1014,8 @@ void InspectorIndexedDBAgent::deleteDatabase(
return;
}
ScriptState::Scope scope(script_state);
- DummyExceptionStateForTesting exception_state;
IDBRequest* idb_request = idb_factory->CloseConnectionsAndDeleteDatabase(
- script_state, database_name, exception_state);
- if (exception_state.HadException()) {
- request_callback->sendFailure(
- Response::Error("Could not delete database."));
- return;
- }
+ script_state, database_name);
idb_request->addEventListener(
EventTypeNames::success,
DeleteCallback::Create(std::move(request_callback),
« no previous file with comments | « third_party/WebKit/Source/modules/indexeddb/IDBFactory.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698