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

Unified Diff: Source/modules/notifications/NotificationCenter.h

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months 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/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechRecognition.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698