Chromium Code Reviews| Index: content/browser/browser_child_process_host_impl_android.cc |
| diff --git a/content/browser/browser_child_process_host_impl_android.cc b/content/browser/browser_child_process_host_impl_android.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..5c7f228eed6a7744c84658d81d44ce174821adef |
| --- /dev/null |
| +++ b/content/browser/browser_child_process_host_impl_android.cc |
| @@ -0,0 +1,20 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/browser/browser_child_process_host_impl.h" |
| + |
| +#include "base/command_line.h" |
| +#include "content/public/common/content_switches.h" |
| + |
| +// static |
| +void BrowserChildProcessHostImpl::AppendCommonChildCommandLine( |
| + CommandLine* cmd_line) { |
| + // The child process needs some essential information very early during its |
| + // life. We pass these as arguments |
| + |
| + if (CommandLine::ForCurrentProcess()->HasSwitch( |
| + switches::kUseMobileUserAgent)) { |
| + cmd_line->AppendSwitch(switches::kUseMobileUserAgent); |
|
jam
2012/10/11 02:09:14
does this need to be passed to all subprocess type
|
| + } |
| +} |