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

Unified Diff: Source/core/page/EventSource.cpp

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/core/page/DOMWindow.cpp ('k') | Source/core/page/History.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventSource.cpp
diff --git a/Source/core/page/EventSource.cpp b/Source/core/page/EventSource.cpp
index 54356451a206d02b9641a33b68fc6205b07f588a..971d8e992fc5405f505a6f6918a73374b76bf198 100644
--- a/Source/core/page/EventSource.cpp
+++ b/Source/core/page/EventSource.cpp
@@ -74,13 +74,13 @@ inline EventSource::EventSource(ScriptExecutionContext* context, const KURL& url
PassRefPtr<EventSource> EventSource::create(ScriptExecutionContext* context, const String& url, const Dictionary& eventSourceInit, ExceptionCode& ec)
{
if (url.isEmpty()) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return 0;
}
KURL fullURL = context->completeURL(url);
if (!fullURL.isValid()) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return 0;
}
@@ -92,7 +92,7 @@ PassRefPtr<EventSource> EventSource::create(ScriptExecutionContext* context, con
}
if (!shouldBypassMainWorldContentSecurityPolicy && !context->contentSecurityPolicy()->allowConnectToSource(fullURL)) {
// FIXME: Should this be throwing an exception?
- ec = SECURITY_ERR;
+ ec = SecurityError;
return 0;
}
« no previous file with comments | « Source/core/page/DOMWindow.cpp ('k') | Source/core/page/History.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698