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

Unified Diff: Source/modules/indexeddb/IDBFactory.cpp

Issue 1182233003: IndexedDB: Replace use of DOMError with DOMException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 3 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 | « Source/modules/indexeddb/IDBDatabaseCallbacks.cpp ('k') | Source/modules/indexeddb/IDBOpenDBRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBFactory.cpp
diff --git a/Source/modules/indexeddb/IDBFactory.cpp b/Source/modules/indexeddb/IDBFactory.cpp
index 385a831eb022903621b1cfe163992786934f9b02..5801007aa06dd4c89e75c569b9c0d65193a52428 100644
--- a/Source/modules/indexeddb/IDBFactory.cpp
+++ b/Source/modules/indexeddb/IDBFactory.cpp
@@ -31,6 +31,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/modules/v8/V8BindingForModules.h"
+#include "core/dom/DOMException.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
#include "modules/indexeddb/IDBDatabase.h"
@@ -83,7 +84,7 @@ IDBRequest* IDBFactory::getDatabaseNames(ScriptState* scriptState, ExceptionStat
IDBRequest* request = IDBRequest::create(scriptState, IDBAny::createNull(), nullptr);
if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), "Database Listing")) {
- request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage));
+ request->onError(DOMException::create(UnknownError, permissionDeniedErrorMessage));
return request;
}
@@ -117,7 +118,7 @@ IDBOpenDBRequest* IDBFactory::openInternal(ScriptState* scriptState, const Strin
IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState, databaseCallbacks, transactionId, version);
if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), name)) {
- request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage));
+ request->onError(DOMException::create(UnknownError, permissionDeniedErrorMessage));
return request;
}
@@ -145,7 +146,7 @@ IDBOpenDBRequest* IDBFactory::deleteDatabase(ScriptState* scriptState, const Str
IDBOpenDBRequest* request = IDBOpenDBRequest::create(scriptState, nullptr, 0, IDBDatabaseMetadata::DefaultIntVersion);
if (!m_permissionClient->allowIndexedDB(scriptState->executionContext(), name)) {
- request->onError(DOMError::create(UnknownError, permissionDeniedErrorMessage));
+ request->onError(DOMException::create(UnknownError, permissionDeniedErrorMessage));
return request;
}
« no previous file with comments | « Source/modules/indexeddb/IDBDatabaseCallbacks.cpp ('k') | Source/modules/indexeddb/IDBOpenDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698