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

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

Issue 1107793002: Oilpan: have DOMException be on the heap by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 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/dom/DOMException.h ('k') | Source/core/dom/DOMException.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DOMException.cpp
diff --git a/Source/core/dom/DOMException.cpp b/Source/core/dom/DOMException.cpp
index b83bc848cec2c05b9ca6416fd73f2ba8314ec750..a669c049c184f89e9801b026f52eb520f7e8351a 100644
--- a/Source/core/dom/DOMException.cpp
+++ b/Source/core/dom/DOMException.cpp
@@ -98,14 +98,14 @@ DOMException::DOMException(unsigned short code, const String& name, const String
m_unsanitizedMessage = unsanitizedMessage;
}
-PassRefPtrWillBeRawPtr<DOMException> DOMException::create(ExceptionCode ec, const String& sanitizedMessage, const String& unsanitizedMessage)
+DOMException* DOMException::create(ExceptionCode ec, const String& sanitizedMessage, const String& unsanitizedMessage)
{
const CoreException* entry = getErrorEntry(ec);
ASSERT(entry);
- return adoptRefWillBeNoop(new DOMException(entry->code,
+ return new DOMException(entry->code,
entry->name ? entry->name : "Error",
sanitizedMessage.isNull() ? String(entry->message) : sanitizedMessage,
- unsanitizedMessage));
+ unsanitizedMessage);
}
String DOMException::toString() const
« no previous file with comments | « Source/core/dom/DOMException.h ('k') | Source/core/dom/DOMException.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698