| 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),
|
|
|