Index: remoting/host/elevated_controller_module_win.cc |
diff --git a/remoting/host/elevated_controller_module_win.cc b/remoting/host/elevated_controller_module_win.cc |
index 6f7c8a2141e04fc60d9f8f4b53e6dafa8824b780..0bff8c604e5779a3a41187af461f1c871824f5ee 100644 |
--- a/remoting/host/elevated_controller_module_win.cc |
+++ b/remoting/host/elevated_controller_module_win.cc |
@@ -10,7 +10,9 @@ |
#include "base/command_line.h" |
#include "base/file_path.h" |
#include "base/logging.h" |
+#include "remoting/base/breakpad.h" |
#include "remoting/host/branding.h" |
+#include "remoting/host/usage_stats_consent.h" |
// MIDL-generated declarations. |
#include "remoting/host/elevated_controller.h" |
@@ -29,6 +31,10 @@ class ElevatedControllerModuleWin |
remoting::ElevatedControllerModuleWin _AtlModule; |
int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) { |
+ if (remoting::IsCrashReportingEnabled()) { |
+ remoting::InitializeCrashReporting(); |
+ } |
+ |
CommandLine::Init(0, NULL); |
// Register and initialize common controls. |