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

Unified Diff: Source/modules/webdatabase/DOMWindowWebDatabase.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. 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
« no previous file with comments | « Source/modules/webaudio/AudioScheduledSourceNode.cpp ('k') | Source/modules/webdatabase/DatabaseManager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DOMWindowWebDatabase.cpp
diff --git a/Source/modules/webdatabase/DOMWindowWebDatabase.cpp b/Source/modules/webdatabase/DOMWindowWebDatabase.cpp
index df93f7c834971d23ea7b68affdf132fc28bfe49d..c58c2b7863db1123084e08300c6b61c422bccc14 100644
--- a/Source/modules/webdatabase/DOMWindowWebDatabase.cpp
+++ b/Source/modules/webdatabase/DOMWindowWebDatabase.cpp
@@ -29,7 +29,6 @@
#include "modules/webdatabase/DOMWindowWebDatabase.h"
#include "RuntimeEnabledFeatures.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/Document.h"
#include "core/dom/ExceptionCode.h"
@@ -54,9 +53,9 @@ PassRefPtr<Database> DOMWindowWebDatabase::openDatabase(DOMWindow* window, const
database = dbManager.openDatabase(window->document(), name, version, displayName, estimatedSize, creationCallback, error, errorMessage);
ASSERT(database || error != DatabaseError::None);
if (error != DatabaseError::None)
- DatabaseManager::throwExceptionForDatabaseError("openDatabase", "Window", error, errorMessage, exceptionState);
+ DatabaseManager::throwExceptionForDatabaseError(error, errorMessage, exceptionState);
} else {
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("openDatabase", "Window", "Access to the WebDatabase API is denied in this context."));
+ exceptionState.throwSecurityError("Access to the WebDatabase API is denied in this context.");
}
return database;
« no previous file with comments | « Source/modules/webaudio/AudioScheduledSourceNode.cpp ('k') | Source/modules/webdatabase/DatabaseManager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698