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 "remoting/host/host_service_win.h" | 8 #include "remoting/host/host_service_win.h" |
9 | 9 |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 } | 404 } |
405 | 405 |
406 default: | 406 default: |
407 return DefWindowProc(hwnd, message, wparam, lparam); | 407 return DefWindowProc(hwnd, message, wparam, lparam); |
408 } | 408 } |
409 } | 409 } |
410 | 410 |
411 } // namespace remoting | 411 } // namespace remoting |
412 | 412 |
413 int main(int argc, char** argv) { | 413 int main(int argc, char** argv) { |
414 if (remoting::IsCrashReportingEnabled()) { | 414 if (remoting::IsUsageStatsAllowed()) { |
415 remoting::InitializeCrashReporting(); | 415 remoting::InitializeCrashReporting(); |
416 } | 416 } |
417 | 417 |
418 CommandLine::Init(argc, argv); | 418 CommandLine::Init(argc, argv); |
419 | 419 |
420 // This object instance is required by Chrome code (for example, | 420 // This object instance is required by Chrome code (for example, |
421 // FilePath, LazyInstance, MessageLoop). | 421 // FilePath, LazyInstance, MessageLoop). |
422 base::AtExitManager exit_manager; | 422 base::AtExitManager exit_manager; |
423 | 423 |
424 // Write logs to the application profile directory. | 424 // Write logs to the application profile directory. |
(...skipping 14 matching lines...) Expand all Loading... |
439 } | 439 } |
440 | 440 |
441 remoting::HostService* service = remoting::HostService::GetInstance(); | 441 remoting::HostService* service = remoting::HostService::GetInstance(); |
442 if (!service->InitWithCommandLine(command_line)) { | 442 if (!service->InitWithCommandLine(command_line)) { |
443 usage(argv[0]); | 443 usage(argv[0]); |
444 return kUsageExitCode; | 444 return kUsageExitCode; |
445 } | 445 } |
446 | 446 |
447 return service->Run(); | 447 return service->Run(); |
448 } | 448 } |
OLD | NEW |