summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process.cc
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 22:08:15 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 22:08:15 +0000
commitaa96ae77f43f2dd3f7ab30bb7ca3eddad6fa841b (patch)
tree672f08d4d6aae56bea4d84b973768fcdb03b1705 /chrome/common/child_process.cc
parentcb2eee6160fed7196ba186bfca28367da277b71e (diff)
downloadchromium_src-aa96ae77f43f2dd3f7ab30bb7ca3eddad6fa841b.zip
chromium_src-aa96ae77f43f2dd3f7ab30bb7ca3eddad6fa841b.tar.gz
chromium_src-aa96ae77f43f2dd3f7ab30bb7ca3eddad6fa841b.tar.bz2
POSIX: Get IPCSyncChannel unittests working
Review URL: http://codereview.chromium.org/18324 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8328 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/child_process.cc')
-rw-r--r--chrome/common/child_process.cc6
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;