diff options
Diffstat (limited to 'chrome/common/child_process.cc')
-rw-r--r-- | chrome/common/child_process.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/common/child_process.cc b/chrome/common/child_process.cc index 539d8a3..112fceb 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; |