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

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

Issue 10495003: Make Chromoting Host report crashes to Breakpad (Windows only). The user must enable crash dumps co… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 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"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/files/file_path_watcher.h" 15 #include "base/files/file_path_watcher.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/message_loop.h" 18 #include "base/message_loop.h"
19 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
20 #include "base/threading/thread.h" 20 #include "base/threading/thread.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "crypto/nss_util.h" 22 #include "crypto/nss_util.h"
23 #include "net/base/network_change_notifier.h" 23 #include "net/base/network_change_notifier.h"
24 #include "remoting/base/constants.h" 24 #include "remoting/base/constants.h"
25 #include "remoting/host/branding.h" 25 #include "remoting/host/branding.h"
26 #include "remoting/host/breakpad.h"
26 #include "remoting/host/constants.h" 27 #include "remoting/host/constants.h"
27 #include "remoting/host/capturer.h" 28 #include "remoting/host/capturer.h"
28 #include "remoting/host/chromoting_host.h" 29 #include "remoting/host/chromoting_host.h"
29 #include "remoting/host/chromoting_host_context.h" 30 #include "remoting/host/chromoting_host_context.h"
30 #include "remoting/host/desktop_environment.h" 31 #include "remoting/host/desktop_environment.h"
31 #include "remoting/host/event_executor.h" 32 #include "remoting/host/event_executor.h"
32 #include "remoting/host/heartbeat_sender.h" 33 #include "remoting/host/heartbeat_sender.h"
33 #include "remoting/host/host_config.h" 34 #include "remoting/host/host_config.h"
34 #include "remoting/host/host_event_logger.h" 35 #include "remoting/host/host_event_logger.h"
35 #include "remoting/host/host_user_interface.h" 36 #include "remoting/host/host_user_interface.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 return me2me_host.Run(); 551 return me2me_host.Run();
551 } 552 }
552 553
553 #if defined(OS_WIN) 554 #if defined(OS_WIN)
554 HMODULE g_hModule = NULL; 555 HMODULE g_hModule = NULL;
555 556
556 int CALLBACK WinMain(HINSTANCE instance, 557 int CALLBACK WinMain(HINSTANCE instance,
557 HINSTANCE previous_instance, 558 HINSTANCE previous_instance,
558 LPSTR command_line, 559 LPSTR command_line,
559 int show_command) { 560 int show_command) {
561 // Initializes the crash dump reports.
562 remoting::InitializeCrashReporting();
563
560 g_hModule = instance; 564 g_hModule = instance;
561 565
562 // Register and initialize common controls. 566 // Register and initialize common controls.
563 INITCOMMONCONTROLSEX info; 567 INITCOMMONCONTROLSEX info;
564 info.dwSize = sizeof(info); 568 info.dwSize = sizeof(info);
565 info.dwICC = ICC_STANDARD_CLASSES; 569 info.dwICC = ICC_STANDARD_CLASSES;
566 InitCommonControlsEx(&info); 570 InitCommonControlsEx(&info);
567 571
568 // Mark the process as DPI-aware, so Windows won't scale coordinates in APIs. 572 // Mark the process as DPI-aware, so Windows won't scale coordinates in APIs.
569 SetProcessDPIAware(); 573 SetProcessDPIAware();
570 574
571 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting 575 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting
572 // the command line from GetCommandLineW(), so we can safely pass NULL here. 576 // the command line from GetCommandLineW(), so we can safely pass NULL here.
573 return main(0, NULL); 577 return main(0, NULL);
574 } 578 }
575 579
576 #endif // defined(OS_WIN) 580 #endif // defined(OS_WIN)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698