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

Unified Diff: Source/modules/notifications/WebKitNotification.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
Index: Source/modules/notifications/WebKitNotification.cpp
diff --git a/Source/modules/notifications/WebKitNotification.cpp b/Source/modules/notifications/WebKitNotification.cpp
index 0fc7124eaa0ab81aa0569aa2e96f13048cdafac6..44f09dc390db1c94a5c1988ab2d3f204d99fb40a 100644
--- a/Source/modules/notifications/WebKitNotification.cpp
+++ b/Source/modules/notifications/WebKitNotification.cpp
@@ -33,7 +33,6 @@
#if ENABLE(LEGACY_NOTIFICATIONS)
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/ExecutionContext.h"
@@ -56,13 +55,13 @@ WebKitNotification::WebKitNotification(const String& title, const String& body,
ScriptWrappable::init(this);
if (provider->checkPermission() != NotificationClient::PermissionAllowed) {
- es.throwSecurityError(ExceptionMessages::failedToExecute("createNotification", "NotificationCenter", "Notification permission has not been granted."));
+ es.throwSecurityError("Notification permission has not been granted.");
return;
}
KURL icon = iconUrl.isEmpty() ? KURL() : executionContext()->completeURL(iconUrl);
if (!icon.isEmpty() && !icon.isValid()) {
- es.throwDOMException(SyntaxError, ExceptionMessages::failedToExecute("createNotification", "NotificationCenter", "'" + iconUrl + "' is not a valid icon URL."));
+ es.throwDOMException(SyntaxError, "'" + iconUrl + "' is not a valid icon URL.");
return;
}
« no previous file with comments | « Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp ('k') | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698