Chromium Code Reviews| Index: Source/core/inspector/InspectorIndexedDBAgent.cpp |
| diff --git a/Source/core/inspector/InspectorIndexedDBAgent.cpp b/Source/core/inspector/InspectorIndexedDBAgent.cpp |
| index d1389319a80f49e58ab38dc5ec41e0bfd5dd614e..f8762be656f49f4ef222298c7f2f4ca071ce7fea 100644 |
| --- a/Source/core/inspector/InspectorIndexedDBAgent.cpp |
| +++ b/Source/core/inspector/InspectorIndexedDBAgent.cpp |
| @@ -32,6 +32,7 @@ |
| #include "core/inspector/InspectorIndexedDBAgent.h" |
| +#include "bindings/v8/ExceptionStatePlaceholder.h" |
| #include "bindings/v8/ScriptController.h" |
| #include "core/dom/DOMStringList.h" |
| #include "core/dom/Document.h" |
| @@ -209,27 +210,27 @@ void ExecutableWithDatabase::start(IDBFactory* idbFactory, SecurityOrigin*, cons |
| static PassRefPtr<IDBTransaction> transactionForDatabase(ScriptExecutionContext* scriptExecutionContext, IDBDatabase* idbDatabase, const String& objectStoreName, const String& mode = IDBTransaction::modeReadOnly()) |
| { |
| - ExceptionCode ec = 0; |
| - RefPtr<IDBTransaction> idbTransaction = idbDatabase->transaction(scriptExecutionContext, objectStoreName, mode, ec); |
| - if (ec) |
| + IgnorableExceptionState es; |
|
arv (Not doing code reviews)
2013/07/01 22:29:31
Maybe another subclass... ignore is not really the
jsbell
2013/07/02 18:48:08
Agreed, and I don't have a better suggestion.
arv (Not doing code reviews)
2013/07/09 23:41:04
Done.
|
| + RefPtr<IDBTransaction> idbTransaction = idbDatabase->transaction(scriptExecutionContext, objectStoreName, mode, es); |
| + if (es.hadException()) |
| return 0; |
| return idbTransaction; |
| } |
| static PassRefPtr<IDBObjectStore> objectStoreForTransaction(IDBTransaction* idbTransaction, const String& objectStoreName) |
| { |
| - ExceptionCode ec = 0; |
| - RefPtr<IDBObjectStore> idbObjectStore = idbTransaction->objectStore(objectStoreName, ec); |
| - if (ec) |
| + IgnorableExceptionState es; |
| + RefPtr<IDBObjectStore> idbObjectStore = idbTransaction->objectStore(objectStoreName, es); |
| + if (es.hadException()) |
| return 0; |
| return idbObjectStore; |
| } |
| static PassRefPtr<IDBIndex> indexForObjectStore(IDBObjectStore* idbObjectStore, const String& indexName) |
| { |
| - ExceptionCode ec = 0; |
| - RefPtr<IDBIndex> idbIndex = idbObjectStore->index(indexName, ec); |
| - if (ec) |
| + IgnorableExceptionState es; |
| + RefPtr<IDBIndex> idbIndex = idbObjectStore->index(indexName, es); |
| + if (es.hadException()) |
| return 0; |
| return idbIndex; |
| } |