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

Unified Diff: base/sync_socket_posix.cc

Issue 2809673002: Fix double close in MojoAudioOutputStream. (Closed)
Patch Set: Fix Win complie. Created 3 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: base/sync_socket_posix.cc
diff --git a/base/sync_socket_posix.cc b/base/sync_socket_posix.cc
index 5d9e25e5eadeb7769b74e19bdae80c3233b5a2dc..da995f4b64864478e1b53801d1f6529bb9aa2010 100644
--- a/base/sync_socket_posix.cc
+++ b/base/sync_socket_posix.cc
@@ -207,6 +207,12 @@ size_t SyncSocket::Peek() {
return number_chars;
}
+SyncSocket::Handle SyncSocket::Release() {
+ Handle r = handle_;
+ handle_ = kInvalidHandle;
+ return r;
+}
+
CancelableSyncSocket::CancelableSyncSocket() {}
CancelableSyncSocket::CancelableSyncSocket(Handle handle)
: SyncSocket(handle) {

Powered by Google App Engine
This is Rietveld 408576698