Index: chrome/common/child_process.cc |
diff --git a/chrome/common/child_process.cc b/chrome/common/child_process.cc |
index 539d8a33903f8e1cc2561bb3df4af20077f47254..112fceb003b4429264b10d87eda6ce0374e6de7b 100644 |
--- a/chrome/common/child_process.cc |
+++ b/chrome/common/child_process.cc |
@@ -2,8 +2,6 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include <windows.h> |
- |
#include "chrome/common/child_process.h" |
#include "base/atomic_ref_count.h" |
@@ -81,8 +79,12 @@ bool ChildProcess::GlobalInit(const std::wstring &channel_name, |
CommandLine command_line; |
if (command_line.HasSwitch(switches::kUserAgent)) { |
+#if defined(OS_WIN) |
+ // TODO(port): calling this connects an, otherwise disconnected, subgraph |
+ // of symbols, causing huge numbers of linker errors. |
webkit_glue::SetUserAgent(WideToUTF8( |
command_line.GetSwitchValue(switches::kUserAgent))); |
+#endif |
} |
return true; |