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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp

Issue 2718663004: Add const char* overloads to blink::ExceptionState (Closed)
Patch Set: Devirtualize Created 3 years, 10 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 | « third_party/WebKit/Source/bindings/core/v8/ExceptionState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
index dc447ca2fe0cbe87fa4a66ec1de3ca7e4c104fb9..a446114b11798ba8f25ee03c6dd238db98817c89 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionState.cpp
@@ -37,6 +37,23 @@
namespace blink {
+void ExceptionState::throwDOMException(ExceptionCode ec, const char* message) {
+ throwDOMException(ec, String(message));
+}
+
+void ExceptionState::throwRangeError(const char* message) {
+ throwRangeError(String(message));
+}
+
+void ExceptionState::throwSecurityError(const char* sanitizedMessage,
+ const char* unsanitizedMessage) {
+ throwSecurityError(String(sanitizedMessage), String(unsanitizedMessage));
+}
+
+void ExceptionState::throwTypeError(const char* message) {
+ throwTypeError(String(message));
+}
+
void ExceptionState::throwDOMException(ExceptionCode ec,
const String& message) {
// SecurityError is thrown via ::throwSecurityError, and _careful_
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ExceptionState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698