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

Unified Diff: chrome/browser/extensions/api/messaging/native_message_port.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 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
Index: chrome/browser/extensions/api/messaging/native_message_port.h
diff --git a/chrome/browser/extensions/api/messaging/native_message_port.h b/chrome/browser/extensions/api/messaging/native_message_port.h
index a19485f8d14630c23b673c426dc197deecbed52d..9437d35be7a6a4b7f6fbc2c6f5d2311a6eb26976 100644
--- a/chrome/browser/extensions/api/messaging/native_message_port.h
+++ b/chrome/browser/extensions/api/messaging/native_message_port.h
@@ -17,7 +17,7 @@ class NativeMessagePort : public MessageService::MessagePort {
public:
NativeMessagePort(base::WeakPtr<MessageService> message_service,
int port_id,
- scoped_ptr<NativeMessageHost> native_message_host);
+ std::unique_ptr<NativeMessageHost> native_message_host);
~NativeMessagePort() override;
// MessageService::MessagePort implementation.
@@ -33,7 +33,7 @@ class NativeMessagePort : public MessageService::MessagePort {
base::WeakPtr<MessageService> weak_message_service_;
scoped_refptr<base::SingleThreadTaskRunner> host_task_runner_;
int port_id_;
- scoped_ptr<Core> core_;
+ std::unique_ptr<Core> core_;
base::WeakPtrFactory<NativeMessagePort> weak_factory_;
};

Powered by Google App Engine
This is Rietveld 408576698