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

Unified Diff: extensions/browser/api/socket/socket.h

Issue 1902873002: Convert //extensions/browser/api 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: extensions/browser/api/socket/socket.h
diff --git a/extensions/browser/api/socket/socket.h b/extensions/browser/api/socket/socket.h
index fefe6bc0f201efd2fadd59cb9ef517d39f672e33..ef1c43605dad60bd3712505bfeadab2d0fe4eb1c 100644
--- a/extensions/browser/api/socket/socket.h
+++ b/extensions/browser/api/socket/socket.h
@@ -40,7 +40,7 @@ typedef base::Callback<void(int,
scoped_refptr<net::IOBuffer> io_buffer,
const std::string&,
uint16_t)> RecvFromCompletionCallback;
-typedef base::Callback<void(int, scoped_ptr<net::TCPClientSocket>)>
+typedef base::Callback<void(int, std::unique_ptr<net::TCPClientSocket>)>
AcceptCompletionCallback;
// A Socket wraps a low-level socket and includes housekeeping information that
@@ -64,7 +64,7 @@ class Socket : public ApiResource {
#if defined(OS_CHROMEOS)
void set_firewall_hole(
- scoped_ptr<AppFirewallHole, content::BrowserThread::DeleteOnUIThread>
+ std::unique_ptr<AppFirewallHole, content::BrowserThread::DeleteOnUIThread>
firewall_hole) {
firewall_hole_ = std::move(firewall_hole);
}
@@ -149,7 +149,7 @@ class Socket : public ApiResource {
#if defined(OS_CHROMEOS)
// Represents a hole punched in the system firewall for this socket.
- scoped_ptr<AppFirewallHole, content::BrowserThread::DeleteOnUIThread>
+ std::unique_ptr<AppFirewallHole, content::BrowserThread::DeleteOnUIThread>
firewall_hole_;
#endif // OS_CHROMEOS
};
« no previous file with comments | « extensions/browser/api/socket/app_firewall_hole_manager.cc ('k') | extensions/browser/api/socket/socket_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698