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

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

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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.h » ('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 bab3e57ffda41410998b993d809ca4228943eb7a..98d8b118ecd337c0ef4cefc95638b61f6e3da68d 100644
--- a/Source/modules/notifications/NotificationCenter.h
+++ b/Source/modules/notifications/NotificationCenter.h
@@ -32,7 +32,6 @@
#ifndef NotificationCenter_h
#define NotificationCenter_h
-#include "bindings/v8/ExceptionState.h"
#include "bindings/v8/ScriptWrappable.h"
#include "core/dom/ExceptionCode.h"
#include "core/dom/ScriptExecutionContext.h"
@@ -56,28 +55,28 @@ public:
static PassRefPtr<NotificationCenter> create(ScriptExecutionContext*, NotificationClient*);
#if ENABLE(LEGACY_NOTIFICATIONS)
- PassRefPtr<Notification> createHTMLNotification(const String& URI, ExceptionState& es)
+ PassRefPtr<Notification> createHTMLNotification(const String& URI, ExceptionCode& ec)
{
if (!client()) {
- es.throwDOMException(InvalidStateError);
+ ec = InvalidStateError;
return 0;
}
if (URI.isEmpty()) {
- es.throwDOMException(SyntaxError);
+ ec = SyntaxError;
return 0;
}
- return Notification::create(scriptExecutionContext()->completeURL(URI), scriptExecutionContext(), es, this);
+ return Notification::create(scriptExecutionContext()->completeURL(URI), scriptExecutionContext(), ec, this);
}
#endif
#if ENABLE(LEGACY_NOTIFICATIONS)
- PassRefPtr<Notification> createNotification(const String& iconURI, const String& title, const String& body, ExceptionState& es)
+ PassRefPtr<Notification> createNotification(const String& iconURI, const String& title, const String& body, ExceptionCode& ec)
{
if (!client()) {
- es.throwDOMException(InvalidStateError);
+ ec = InvalidStateError;
return 0;
}
- return Notification::create(title, body, iconURI, scriptExecutionContext(), es, this);
+ return Notification::create(title, body, iconURI, scriptExecutionContext(), ec, this);
}
#endif
« no previous file with comments | « Source/modules/notifications/Notification.cpp ('k') | Source/modules/speech/SpeechRecognition.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698