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

Unified Diff: chrome/common/child_process.cc

Issue 18324: POSIX: Get IPCSyncChannel unittests working (Closed)
Patch Set: Addressing comments Created 11 years, 11 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
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;

Powered by Google App Engine
This is Rietveld 408576698