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

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: Feedback. 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 6af3011745a68d653cf445787a98f6653e8aa575..231f28c49c3e7e34c23ad22274a41acec8748fe4 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;
}
@@ -115,7 +114,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;
}
@@ -149,7 +148,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