Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Side by Side Diff: remoting/host/host_service_win.cc

Issue 10537182: The user's consent to crash dumps reporting can now be set via the UI (Windows only). The checkbox … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/elevated_controller_win.cc ('k') | remoting/host/installer/chromoting.wxs » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 #ifdef OFFICIAL_BUILD
415 if (remoting::IsUsageStatsAllowed()) {
415 remoting::InitializeCrashReporting(); 416 remoting::InitializeCrashReporting();
416 } 417 }
418 #endif // OFFICIAL_BUILD
417 419
418 CommandLine::Init(argc, argv); 420 CommandLine::Init(argc, argv);
419 421
420 // This object instance is required by Chrome code (for example, 422 // This object instance is required by Chrome code (for example,
421 // FilePath, LazyInstance, MessageLoop). 423 // FilePath, LazyInstance, MessageLoop).
422 base::AtExitManager exit_manager; 424 base::AtExitManager exit_manager;
423 425
424 // Write logs to the application profile directory. 426 // Write logs to the application profile directory.
425 FilePath debug_log = remoting::GetConfigDir(). 427 FilePath debug_log = remoting::GetConfigDir().
426 Append(FILE_PATH_LITERAL("debug.log")); 428 Append(FILE_PATH_LITERAL("debug.log"));
(...skipping 12 matching lines...) Expand all
439 } 441 }
440 442
441 remoting::HostService* service = remoting::HostService::GetInstance(); 443 remoting::HostService* service = remoting::HostService::GetInstance();
442 if (!service->InitWithCommandLine(command_line)) { 444 if (!service->InitWithCommandLine(command_line)) {
443 usage(argv[0]); 445 usage(argv[0]);
444 return kUsageExitCode; 446 return kUsageExitCode;
445 } 447 }
446 448
447 return service->Run(); 449 return service->Run();
448 } 450 }
OLDNEW
« no previous file with comments | « remoting/host/elevated_controller_win.cc ('k') | remoting/host/installer/chromoting.wxs » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698