OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 // This file implements the common entry point shared by all Chromoting Host | 5 // This file implements the common entry point shared by all Chromoting Host |
6 // processes. | 6 // processes. |
7 | 7 |
8 #include "remoting/host/host_main.h" | 8 #include "remoting/host/host_main.h" |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/at_exit.h" | 12 #include "base/at_exit.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/stringprintf.h" | |
17 #include "base/strings/stringize_macros.h" | 16 #include "base/strings/stringize_macros.h" |
| 17 #include "base/strings/stringprintf.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "remoting/base/breakpad.h" | 19 #include "remoting/base/breakpad.h" |
20 #include "remoting/host/host_exit_codes.h" | 20 #include "remoting/host/host_exit_codes.h" |
21 #include "remoting/host/logging.h" | 21 #include "remoting/host/logging.h" |
22 #include "remoting/host/usage_stats_consent.h" | 22 #include "remoting/host/usage_stats_consent.h" |
23 | 23 |
24 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
25 #include "base/mac/scoped_nsautorelease_pool.h" | 25 #include "base/mac/scoped_nsautorelease_pool.h" |
26 #endif // defined(OS_MACOSX) | 26 #endif // defined(OS_MACOSX) |
27 | 27 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 // Invoke the entry point. | 235 // Invoke the entry point. |
236 int exit_code = main_routine(); | 236 int exit_code = main_routine(); |
237 if (exit_code == kUsageExitCode) { | 237 if (exit_code == kUsageExitCode) { |
238 Usage(command_line->GetProgram()); | 238 Usage(command_line->GetProgram()); |
239 } | 239 } |
240 return exit_code; | 240 return exit_code; |
241 } | 241 } |
242 | 242 |
243 } // namespace remoting | 243 } // namespace remoting |
OLD | NEW |