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/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" | 16 #include "base/stringprintf.h" |
17 #include "base/strings/stringize_macros.h" | 17 #include "base/strings/stringize_macros.h" |
18 #include "base/utf_string_conversions.h" | 18 #include "base/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) |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 | 225 |
226 // Invoke the entry point. | 226 // Invoke the entry point. |
227 int exit_code = main_routine(); | 227 int exit_code = main_routine(); |
228 if (exit_code == kUsageExitCode) { | 228 if (exit_code == kUsageExitCode) { |
229 Usage(command_line->GetProgram()); | 229 Usage(command_line->GetProgram()); |
230 } | 230 } |
231 return exit_code; | 231 return exit_code; |
232 } | 232 } |
233 | 233 |
234 } // namespace remoting | 234 } // namespace remoting |
OLD | NEW |