| 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 // | 4 // |
| 5 // This file implements a standalone host process for Me2Me. | 5 // This file implements a standalone host process for Me2Me. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1369 int exit_code = kSuccessExitCode; | 1369 int exit_code = kSuccessExitCode; |
| 1370 new HostProcess(context.Pass(), &exit_code); | 1370 new HostProcess(context.Pass(), &exit_code); |
| 1371 | 1371 |
| 1372 // Run the main (also UI) message loop until the host no longer needs it. | 1372 // Run the main (also UI) message loop until the host no longer needs it. |
| 1373 message_loop.Run(); | 1373 message_loop.Run(); |
| 1374 | 1374 |
| 1375 return exit_code; | 1375 return exit_code; |
| 1376 } | 1376 } |
| 1377 | 1377 |
| 1378 } // namespace remoting | 1378 } // namespace remoting |
| 1379 | |
| 1380 #if !defined(OS_WIN) | |
| 1381 int main(int argc, char** argv) { | |
| 1382 return remoting::HostMain(argc, argv); | |
| 1383 } | |
| 1384 #endif // !defined(OS_WIN) | |
| OLD | NEW |