OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "remoting/host/it2me/it2me_native_messaging_host_main.h" | 5 #include "remoting/host/it2me/it2me_native_messaging_host_main.h" |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/i18n/icu_util.h" | 9 #include "base/i18n/icu_util.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 // Run the loop until channel is alive. | 123 // Run the loop until channel is alive. |
124 run_loop.Run(); | 124 run_loop.Run(); |
125 | 125 |
126 return kSuccessExitCode; | 126 return kSuccessExitCode; |
127 } | 127 } |
128 | 128 |
129 int It2MeNativeMessagingHostMain(int argc, char** argv) { | 129 int It2MeNativeMessagingHostMain(int argc, char** argv) { |
130 // This object instance is required by Chrome code (such as MessageLoop). | 130 // This object instance is required by Chrome code (such as MessageLoop). |
131 base::AtExitManager exit_manager; | 131 base::AtExitManager exit_manager; |
132 | 132 |
133 CommandLine::Init(argc, argv); | 133 base::CommandLine::Init(argc, argv); |
134 remoting::InitHostLogging(); | 134 remoting::InitHostLogging(); |
135 | 135 |
136 return StartIt2MeNativeMessagingHost(); | 136 return StartIt2MeNativeMessagingHost(); |
137 } | 137 } |
138 | 138 |
139 } // namespace remoting | 139 } // namespace remoting |
OLD | NEW |