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

Unified Diff: third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.h

Issue 2004313003: DevTools: migrate from OwnPtr to std::unique_ptr for inspector protocol classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 4 years, 7 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/platform/v8_inspector/RemoteObjectId.h
diff --git a/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.h b/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.h
index 3ff31eb3300a33b3e1153d37c15f64dd5afe26a5..ae1cf47ca45be1948cedca48bcf2f24fbb76fb1f 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.h
+++ b/third_party/WebKit/Source/platform/v8_inspector/RemoteObjectId.h
@@ -7,7 +7,7 @@
#include "platform/inspector_protocol/String16.h"
#include "platform/inspector_protocol/TypeBuilder.h"
-#include "wtf/PassOwnPtr.h"
+#include "wtf/PtrUtil.h"
namespace blink {
@@ -23,14 +23,14 @@ protected:
RemoteObjectIdBase();
~RemoteObjectIdBase() { }
- PassOwnPtr<protocol::DictionaryValue> parseInjectedScriptId(const String16&);
+ std::unique_ptr<protocol::DictionaryValue> parseInjectedScriptId(const String16&);
int m_injectedScriptId;
};
class RemoteObjectId final : public RemoteObjectIdBase {
public:
- static PassOwnPtr<RemoteObjectId> parse(ErrorString*, const String16&);
+ static std::unique_ptr<RemoteObjectId> parse(ErrorString*, const String16&);
~RemoteObjectId() { }
int id() const { return m_id; }
@@ -42,7 +42,7 @@ private:
class RemoteCallFrameId final : public RemoteObjectIdBase {
public:
- static PassOwnPtr<RemoteCallFrameId> parse(ErrorString*, const String16&);
+ static std::unique_ptr<RemoteCallFrameId> parse(ErrorString*, const String16&);
~RemoteCallFrameId() { }
int frameOrdinal() const { return m_frameOrdinal; }

Powered by Google App Engine
This is Rietveld 408576698