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

Unified Diff: Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.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/webdatabase/DatabaseManager.cpp ('k') | Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp
diff --git a/Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp b/Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp
index a59ad6c79d104f8d38238287b4fb2a4e05cded03..e38be472e5f0f288e0d33c79d1c7aa90a8f693ab 100644
--- a/Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp
+++ b/Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp
@@ -52,9 +52,9 @@ PassRefPtr<Database> WorkerGlobalScopeWebDatabase::openDatabase(WorkerGlobalScop
database = dbManager.openDatabase(context, name, version, displayName, estimatedSize, creationCallback, error, errorMessage);
ASSERT(database || error != DatabaseError::None);
if (error != DatabaseError::None)
- DatabaseManager::throwExceptionForDatabaseError("openDatabase", "WorkerGlobalScope", error, errorMessage, exceptionState);
+ DatabaseManager::throwExceptionForDatabaseError(error, errorMessage, exceptionState);
} else {
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("openDatabase", "WorkerGlobalScope", "Access to the WebDatabase API is denied in this context."));
+ exceptionState.throwSecurityError("Access to the WebDatabase API is denied in this context.");
}
return database.release();
@@ -70,9 +70,9 @@ PassRefPtr<DatabaseSync> WorkerGlobalScopeWebDatabase::openDatabaseSync(WorkerGl
database = dbManager.openDatabaseSync(context, name, version, displayName, estimatedSize, creationCallback, error, errorMessage);
ASSERT(database || error != DatabaseError::None);
if (error != DatabaseError::None)
- DatabaseManager::throwExceptionForDatabaseError("openDatabaseSync", "WorkerGlobalScope", error, errorMessage, exceptionState);
+ DatabaseManager::throwExceptionForDatabaseError(error, errorMessage, exceptionState);
} else {
- exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("openDatabaseSync", "WorkerGlobalScope", "Access to the WebDatabase API is denied in this context."));
+ exceptionState.throwSecurityError("Access to the WebDatabase API is denied in this context.");
}
return database.release();
« no previous file with comments | « Source/modules/webdatabase/DatabaseManager.cpp ('k') | Source/modules/webmidi/MIDIOutput.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698