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

Unified Diff: base/sync_socket.h

Issue 15480004: moving SyncSocket's kInvalidHandle constant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix linkage Created 7 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
« no previous file with comments | « no previous file | base/sync_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sync_socket.h
diff --git a/base/sync_socket.h b/base/sync_socket.h
index eb3eeb5123c615dd4dbdc6238bf0f4fe6fd957b8..8ba3f6c2652f0a02e97066dae40f821387b253c3 100644
--- a/base/sync_socket.h
+++ b/base/sync_socket.h
@@ -119,6 +119,12 @@ class BASE_EXPORT CancelableSyncSocket : public SyncSocket {
DISALLOW_COPY_AND_ASSIGN(CancelableSyncSocket);
};
+#if defined(OS_WIN) && !defined(COMPONENT_BUILD)
+// TODO(cpu): remove this once chrome is split in two dlls.
+__declspec(selectany)
+ const SyncSocket::Handle SyncSocket::kInvalidHandle = INVALID_HANDLE_VALUE;
+#endif
+
} // namespace base
#endif // BASE_SYNC_SOCKET_H_
« no previous file with comments | « no previous file | base/sync_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698