OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 #include "chrome/browser/browser_process_impl.h" |
| 5 |
| 6 #include "base/command_line.h" |
| 7 #include "chrome/common/chrome_switches.h" |
| 8 |
| 9 #if defined(USE_AURA) |
| 10 #include "chrome/browser/metro_viewer/metro_viewer_process_host_win.h" |
| 11 #endif |
| 12 |
| 13 void BrowserProcessImpl::PlatformSpecificCommandLineProcessing( |
| 14 const CommandLine& command_line) { |
| 15 #if defined(USE_AURA) |
| 16 PerformInitForWindowsAura(command_line); |
| 17 #endif |
| 18 } |
| 19 |
| 20 #if defined(USE_AURA) |
| 21 void BrowserProcessImpl::PerformInitForWindowsAura( |
| 22 const CommandLine& command_line) { |
| 23 if (command_line.HasSwitch(switches::kViewerConnection)) { |
| 24 // Tell the metro viewer process host to connect to the given IPC channel. |
| 25 metro_viewer_process_host_.reset( |
| 26 new MetroViewerProcessHost( |
| 27 command_line.GetSwitchValueASCII(switches::kViewerConnection))); |
| 28 } |
| 29 } |
| 30 #endif |
OLD | NEW |