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

Unified Diff: Source/core/page/Location.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/History.cpp ('k') | Source/core/page/PerformanceUserTiming.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Location.cpp
diff --git a/Source/core/page/Location.cpp b/Source/core/page/Location.cpp
index b901efa823295fcc7b5a942e7d693e39f081dc6e..3a78903fa7ec2a0b715e76872ff3d395f9fef4d3 100644
--- a/Source/core/page/Location.cpp
+++ b/Source/core/page/Location.cpp
@@ -157,7 +157,7 @@ void Location::setProtocol(DOMWindow* activeWindow, DOMWindow* firstWindow, cons
return;
KURL url = m_frame->document()->url();
if (!url.setProtocol(protocol)) {
- ec = SYNTAX_ERR;
+ ec = SyntaxError;
return;
}
setLocation(url.string(), activeWindow, firstWindow);
« no previous file with comments | « Source/core/page/History.cpp ('k') | Source/core/page/PerformanceUserTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698