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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: MessagePort. Created 7 years 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: Source/modules/indexeddb/IDBFactory.cpp
diff --git a/Source/modules/indexeddb/IDBFactory.cpp b/Source/modules/indexeddb/IDBFactory.cpp
index a70646ef65b3015ec7e0885c6a0e69267d607b68..7a0ea440ebb54e97c1f9991ddfa8511eca354aeb 100644
--- a/Source/modules/indexeddb/IDBFactory.cpp
+++ b/Source/modules/indexeddb/IDBFactory.cpp
@@ -29,7 +29,6 @@
#include "config.h"
#include "modules/indexeddb/IDBFactory.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/IDBBindingUtilities.h"
#include "core/dom/Document.h"
@@ -79,7 +78,7 @@ PassRefPtr<IDBRequest> IDBFactory::getDatabaseNames(ExecutionContext* context, E
if (!isContextValid(context))
return 0;
if (!context->securityOrigin()->canAccessDatabase()) {
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("getDatabaseNames", "IDBFactory", "access to the Indexed Database API is denied in this context."));
+ exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
return 0;
}
@@ -116,7 +115,7 @@ PassRefPtr<IDBOpenDBRequest> IDBFactory::openInternal(ExecutionContext* context,
if (!isContextValid(context))
return 0;
if (!context->securityOrigin()->canAccessDatabase()) {
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("open", "IDBFactory", "access to the Indexed Database API is denied in this context."));
+ exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
return 0;
}
@@ -150,7 +149,7 @@ PassRefPtr<IDBOpenDBRequest> IDBFactory::deleteDatabase(ExecutionContext* contex
if (!isContextValid(context))
return 0;
if (!context->securityOrigin()->canAccessDatabase()) {
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("deleteDatabase", "IDBFactory", "access to the Indexed Database API is denied in this context."));
+ exceptionState.throwSecurityError("access to the Indexed Database API is denied in this context.");
return 0;
}

Powered by Google App Engine
This is Rietveld 408576698