Index: third_party/WebKit/Source/core/events/ErrorEvent.h |
diff --git a/third_party/WebKit/Source/core/events/ErrorEvent.h b/third_party/WebKit/Source/core/events/ErrorEvent.h |
index 97121d50b4faf4055209e2f06c01069f42a1e632..e44e28448a2a5f33cdd006d5cd6a4f6653d26c91 100644 |
--- a/third_party/WebKit/Source/core/events/ErrorEvent.h |
+++ b/third_party/WebKit/Source/core/events/ErrorEvent.h |
@@ -37,6 +37,7 @@ |
#include "core/events/Event.h" |
#include "wtf/RefPtr.h" |
#include "wtf/text/WTFString.h" |
+#include <memory> |
namespace blink { |
@@ -47,7 +48,7 @@ public: |
{ |
return new ErrorEvent; |
} |
- static ErrorEvent* create(const String& message, PassOwnPtr<SourceLocation> location, DOMWrapperWorld* world) |
+ static ErrorEvent* create(const String& message, std::unique_ptr<SourceLocation> location, DOMWrapperWorld* world) |
{ |
return new ErrorEvent(message, std::move(location), world); |
} |
@@ -82,12 +83,12 @@ public: |
private: |
ErrorEvent(); |
- ErrorEvent(const String& message, PassOwnPtr<SourceLocation>, DOMWrapperWorld*); |
+ ErrorEvent(const String& message, std::unique_ptr<SourceLocation>, DOMWrapperWorld*); |
ErrorEvent(const AtomicString&, const ErrorEventInit&); |
String m_unsanitizedMessage; |
String m_sanitizedMessage; |
- OwnPtr<SourceLocation> m_location; |
+ std::unique_ptr<SourceLocation> m_location; |
ScriptValue m_error; |
RefPtr<DOMWrapperWorld> m_world; |