OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par
t.h" | 5 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par
t.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
525 content::RenderProcessHost* process, | 525 content::RenderProcessHost* process, |
526 Profile* profile) { | 526 Profile* profile) { |
527 if (!process) | 527 if (!process) |
528 return; | 528 return; |
529 DCHECK(profile); | 529 DCHECK(profile); |
530 if (ProcessMap::Get(profile)->Contains(process->GetID())) { | 530 if (ProcessMap::Get(profile)->Contains(process->GetID())) { |
531 command_line->AppendSwitch(switches::kExtensionProcess); | 531 command_line->AppendSwitch(switches::kExtensionProcess); |
532 #if defined(ENABLE_WEBRTC) | 532 #if defined(ENABLE_WEBRTC) |
533 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); | 533 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); |
534 #endif | 534 #endif |
| 535 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 536 switches::kEnableMojoSerialService)) { |
| 537 command_line->AppendSwitch(switches::kEnableMojoSerialService); |
| 538 } |
535 } | 539 } |
536 } | 540 } |
537 | 541 |
538 } // namespace extensions | 542 } // namespace extensions |
OLD | NEW |