| Index: Source/modules/notifications/NotificationCenter.h
|
| diff --git a/Source/modules/notifications/NotificationCenter.h b/Source/modules/notifications/NotificationCenter.h
|
| index 8ec001262b868ca5a0ff90b7accd85d2a0b4fa7d..98d8b118ecd337c0ef4cefc95638b61f6e3da68d 100644
|
| --- a/Source/modules/notifications/NotificationCenter.h
|
| +++ b/Source/modules/notifications/NotificationCenter.h
|
| @@ -58,11 +58,11 @@ public:
|
| PassRefPtr<Notification> createHTMLNotification(const String& URI, ExceptionCode& ec)
|
| {
|
| if (!client()) {
|
| - ec = INVALID_STATE_ERR;
|
| + ec = InvalidStateError;
|
| return 0;
|
| }
|
| if (URI.isEmpty()) {
|
| - ec = SYNTAX_ERR;
|
| + ec = SyntaxError;
|
| return 0;
|
| }
|
| return Notification::create(scriptExecutionContext()->completeURL(URI), scriptExecutionContext(), ec, this);
|
| @@ -73,7 +73,7 @@ public:
|
| PassRefPtr<Notification> createNotification(const String& iconURI, const String& title, const String& body, ExceptionCode& ec)
|
| {
|
| if (!client()) {
|
| - ec = INVALID_STATE_ERR;
|
| + ec = InvalidStateError;
|
| return 0;
|
| }
|
| return Notification::create(title, body, iconURI, scriptExecutionContext(), ec, this);
|
|
|