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

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

Issue 254923002: Oilpan: move DOMException to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 2ae439f4cc7d55e541b8e36857bd1ed32cf3c39f..5db0d351315ac92c9998f27283bd0e7201fc8246 100644
--- a/Source/core/dom/DOMException.cpp
+++ b/Source/core/dom/DOMException.cpp
@@ -96,11 +96,11 @@ DOMException::DOMException(unsigned short code, const String& name, const String
ScriptWrappable::init(this);
}
-PassRefPtr<DOMException> DOMException::create(ExceptionCode ec, const String& sanitizedMessage, const String& unsanitizedMessage)
+PassRefPtrWillBeRawPtr<DOMException> DOMException::create(ExceptionCode ec, const String& sanitizedMessage, const String& unsanitizedMessage)
{
const CoreException* entry = getErrorEntry(ec);
ASSERT(entry);
- return adoptRef(new DOMException(entry->code,
+ return adoptRefWillBeNoop(new DOMException(entry->code,
entry->name ? entry->name : "Error",
sanitizedMessage.isNull() ? String(entry->message) : sanitizedMessage,
unsanitizedMessage));
« 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