| 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 the Windows service controlling Me2Me host processes | 5 // This file implements the Windows service controlling Me2Me host processes |
| 6 // running within user sessions. | 6 // running within user sessions. |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 desktop_environment_factory.reset(new Me2MeDesktopEnvironmentFactory( | 60 desktop_environment_factory.reset(new Me2MeDesktopEnvironmentFactory( |
| 61 ui_task_runner, | 61 ui_task_runner, |
| 62 input_task_runner, | 62 input_task_runner, |
| 63 ui_task_runner)); | 63 ui_task_runner)); |
| 64 #endif // !defined(OS_WIN) | 64 #endif // !defined(OS_WIN) |
| 65 | 65 |
| 66 if (!desktop_process.Start(desktop_environment_factory.Pass())) | 66 if (!desktop_process.Start(desktop_environment_factory.Pass())) |
| 67 return kInitializationFailed; | 67 return kInitializationFailed; |
| 68 | 68 |
| 69 // Run the UI message loop. | 69 // Run the UI message loop. |
| 70 ui_task_runner = NULL; | 70 ui_task_runner = nullptr; |
| 71 run_loop.Run(); | 71 run_loop.Run(); |
| 72 | 72 |
| 73 return kSuccessExitCode; | 73 return kSuccessExitCode; |
| 74 } | 74 } |
| 75 | 75 |
| 76 } // namespace remoting | 76 } // namespace remoting |
| 77 | 77 |
| 78 #if !defined(OS_WIN) | 78 #if !defined(OS_WIN) |
| 79 int main(int argc, char** argv) { | 79 int main(int argc, char** argv) { |
| 80 return remoting::HostMain(argc, argv); | 80 return remoting::HostMain(argc, argv); |
| 81 } | 81 } |
| 82 #endif // !defined(OS_WIN) | 82 #endif // !defined(OS_WIN) |
| OLD | NEW |