| Index: Source/modules/webdatabase/DOMWindowWebDatabase.cpp
|
| diff --git a/Source/modules/webdatabase/DOMWindowWebDatabase.cpp b/Source/modules/webdatabase/DOMWindowWebDatabase.cpp
|
| index ff3580079430abc6b5404e3533ef2a0e9ab65818..df93f7c834971d23ea7b68affdf132fc28bfe49d 100644
|
| --- a/Source/modules/webdatabase/DOMWindowWebDatabase.cpp
|
| +++ b/Source/modules/webdatabase/DOMWindowWebDatabase.cpp
|
| @@ -41,7 +41,7 @@
|
|
|
| namespace WebCore {
|
|
|
| -PassRefPtr<Database> DOMWindowWebDatabase::openDatabase(DOMWindow* window, const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionState& es)
|
| +PassRefPtr<Database> DOMWindowWebDatabase::openDatabase(DOMWindow* window, const String& name, const String& version, const String& displayName, unsigned long estimatedSize, PassRefPtr<DatabaseCallback> creationCallback, ExceptionState& exceptionState)
|
| {
|
| if (!window->isCurrentlyDisplayedInFrame())
|
| return 0;
|
| @@ -54,9 +54,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, es);
|
| + DatabaseManager::throwExceptionForDatabaseError("openDatabase", "Window", error, errorMessage, exceptionState);
|
| } else {
|
| - es.throwSecurityError(ExceptionMessages::failedToExecute("openDatabase", "Window", "Access to the WebDatabase API is denied in this context."));
|
| + exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("openDatabase", "Window", "Access to the WebDatabase API is denied in this context."));
|
| }
|
|
|
| return database;
|
|
|