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

Unified Diff: runtime/bin/platform_win.cc

Issue 12316036: Merge IO v2 branch to bleeding edge (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased to r18818 Created 7 years, 10 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 | « runtime/bin/file.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_win.cc
diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc
index b6ec1f28e12c22022c895cf2cd2f723ade0a0ee1..a71a455b289031051d2f92a4b1106be2a50e7dcb 100644
--- a/runtime/bin/platform_win.cc
+++ b/runtime/bin/platform_win.cc
@@ -28,12 +28,7 @@ const char* Platform::OperatingSystem() {
bool Platform::LocalHostname(char *buffer, intptr_t buffer_length) {
- static bool socket_initialized = false;
- if (!socket_initialized) {
- // Initialize Socket for gethostname.
- if (!Socket::Initialize()) return false;
- socket_initialized = true;
- }
+ if (!Socket::Initialize()) return false;
return gethostname(buffer, buffer_length) == 0;
}
« no previous file with comments | « runtime/bin/file.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698