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

Unified Diff: content/browser/devtools/protocol/tethering_handler.h

Issue 1874893002: Convert //content/browser from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: content/browser/devtools/protocol/tethering_handler.h
diff --git a/content/browser/devtools/protocol/tethering_handler.h b/content/browser/devtools/protocol/tethering_handler.h
index fc6b8e5067345e328dc0c6641146dfdb18052172..f45ac9cdd35e35612637d96f63c96705230e017f 100644
--- a/content/browser/devtools/protocol/tethering_handler.h
+++ b/content/browser/devtools/protocol/tethering_handler.h
@@ -24,13 +24,13 @@ class TetheringHandler {
public:
using Response = DevToolsProtocolClient::Response;
using CreateServerSocketCallback =
- base::Callback<scoped_ptr<net::ServerSocket>(std::string*)>;
+ base::Callback<std::unique_ptr<net::ServerSocket>(std::string*)>;
TetheringHandler(const CreateServerSocketCallback& socket_callback,
scoped_refptr<base::SingleThreadTaskRunner> task_runner);
~TetheringHandler();
- void SetClient(scoped_ptr<Client> client);
+ void SetClient(std::unique_ptr<Client> client);
Response Bind(DevToolsCommandId command_id, int port);
Response Unbind(DevToolsCommandId command_id, int port);
@@ -46,7 +46,7 @@ class TetheringHandler {
void SendInternalError(DevToolsCommandId command_id,
const std::string& message);
- scoped_ptr<Client> client_;
+ std::unique_ptr<Client> client_;
CreateServerSocketCallback socket_callback_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
bool is_active_;
« no previous file with comments | « content/browser/devtools/protocol/system_info_handler.cc ('k') | content/browser/devtools/protocol/tethering_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698