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

Unified Diff: third_party/WebKit/Source/core/events/ErrorEvent.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 e44e28448a2a5f33cdd006d5cd6a4f6653d26c91..97121d50b4faf4055209e2f06c01069f42a1e632 100644
--- a/third_party/WebKit/Source/core/events/ErrorEvent.h
+++ b/third_party/WebKit/Source/core/events/ErrorEvent.h
@@ -37,7 +37,6 @@
#include "core/events/Event.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
-#include <memory>
namespace blink {
@@ -48,7 +47,7 @@ public:
{
return new ErrorEvent;
}
- static ErrorEvent* create(const String& message, std::unique_ptr<SourceLocation> location, DOMWrapperWorld* world)
+ static ErrorEvent* create(const String& message, PassOwnPtr<SourceLocation> location, DOMWrapperWorld* world)
{
return new ErrorEvent(message, std::move(location), world);
}
@@ -83,12 +82,12 @@ public:
private:
ErrorEvent();
- ErrorEvent(const String& message, std::unique_ptr<SourceLocation>, DOMWrapperWorld*);
+ ErrorEvent(const String& message, PassOwnPtr<SourceLocation>, DOMWrapperWorld*);
ErrorEvent(const AtomicString&, const ErrorEventInit&);
String m_unsanitizedMessage;
String m_sanitizedMessage;
- std::unique_ptr<SourceLocation> m_location;
+ OwnPtr<SourceLocation> m_location;
ScriptValue m_error;
RefPtr<DOMWrapperWorld> m_world;

Powered by Google App Engine
This is Rietveld 408576698