OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #include "chrome/browser/browser_process_impl.h" | 4 #include "chrome/browser/browser_process_impl.h" |
5 | 5 |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "chrome/common/chrome_switches.h" | 7 #include "chrome/common/chrome_switches.h" |
8 | 8 |
9 #if defined(USE_AURA) | 9 #if defined(USE_AURA) |
10 #include "chrome/browser/metro_viewer/metro_viewer_process_host_win.h" | 10 #include "chrome/browser/metro_viewer/metro_viewer_process_host_win.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 const CommandLine& command_line) { | 26 const CommandLine& command_line) { |
27 if (command_line.HasSwitch(switches::kViewerConnection) && | 27 if (command_line.HasSwitch(switches::kViewerConnection) && |
28 !metro_viewer_process_host_.get()) { | 28 !metro_viewer_process_host_.get()) { |
29 // Tell the metro viewer process host to connect to the given IPC channel. | 29 // Tell the metro viewer process host to connect to the given IPC channel. |
30 metro_viewer_process_host_.reset( | 30 metro_viewer_process_host_.reset( |
31 new MetroViewerProcessHost( | 31 new MetroViewerProcessHost( |
32 command_line.GetSwitchValueASCII(switches::kViewerConnection))); | 32 command_line.GetSwitchValueASCII(switches::kViewerConnection))); |
33 } | 33 } |
34 } | 34 } |
35 #endif | 35 #endif |
OLD | NEW |