| Index: chrome/common/child_process.cc
|
| diff --git a/chrome/common/child_process.cc b/chrome/common/child_process.cc
|
| index 539d8a33903f8e1cc2561bb3df4af20077f47254..662721512b607e20b67b3295593bf610dc355378 100644
|
| --- a/chrome/common/child_process.cc
|
| +++ b/chrome/common/child_process.cc
|
| @@ -79,7 +79,7 @@ bool ChildProcess::GlobalInit(const std::wstring &channel_name,
|
|
|
| child_process_ = factory->Create(channel_name);
|
|
|
| - CommandLine command_line;
|
| + const CommandLine& command_line = *CommandLine::ForCurrentProcess();
|
| if (command_line.HasSwitch(switches::kUserAgent)) {
|
| webkit_glue::SetUserAgent(WideToUTF8(
|
| command_line.GetSwitchValue(switches::kUserAgent)));
|
|
|