Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "content/browser/browser_child_process_host_impl.h" | |
| 6 | |
| 7 #include "base/command_line.h" | |
| 8 #include "content/public/common/content_switches.h" | |
| 9 | |
| 10 // static | |
| 11 void BrowserChildProcessHostImpl::AppendCommonChildCommandLine( | |
| 12 CommandLine* cmd_line) { | |
| 13 // The child process needs some essential information very early during its | |
| 14 // life. We pass these as arguments | |
| 15 | |
| 16 if (CommandLine::ForCurrentProcess()->HasSwitch( | |
| 17 switches::kUseMobileUserAgent)) { | |
| 18 cmd_line->AppendSwitch(switches::kUseMobileUserAgent); | |
|
jam
2012/10/11 02:09:14
does this need to be passed to all subprocess type
| |
| 19 } | |
| 20 } | |
| OLD | NEW |