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

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

Issue 1364823002: IndexedDB: Replace use of DOMError with DOMException (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Drop [Measure] where done Created 5 years, 1 month 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
Index: third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
index 385a831eb022903621b1cfe163992786934f9b02..5801007aa06dd4c89e75c569b9c0d65193a52428 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp
+++ b/third_party/WebKit/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;
}

Powered by Google App Engine
This is Rietveld 408576698