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

Unified Diff: Source/core/dom/DOMURL.cpp

Issue 111373003: Migrate bindings constructors to the new ExceptionState model. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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
Index: Source/core/dom/DOMURL.cpp
diff --git a/Source/core/dom/DOMURL.cpp b/Source/core/dom/DOMURL.cpp
index a61485e96a0d6a7af999cf0be9e19b27d0b1f46e..8881223f72445c4d4933110e6246154d56d8229f 100644
--- a/Source/core/dom/DOMURL.cpp
+++ b/Source/core/dom/DOMURL.cpp
@@ -44,11 +44,11 @@ DOMURL::DOMURL(const String& url, const KURL& base, ExceptionState& exceptionSta
{
ScriptWrappable::init(this);
if (!base.isValid())
- exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedToConstruct("URL", "Invalid base URL"));
+ exceptionState.throwDOMException(SyntaxError, "Invalid base URL");
m_url = KURL(base, url);
if (!m_url.isValid())
- exceptionState.throwDOMException(SyntaxError, ExceptionMessages::failedToConstruct("URL", "Invalid URL"));
+ exceptionState.throwDOMException(SyntaxError, "Invalid URL");
}
void DOMURL::setInput(const String& value)

Powered by Google App Engine
This is Rietveld 408576698