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

Unified Diff: remoting/host/elevated_controller_module_win.cc

Issue 10535082: /C++ readability/ - Make Chromoting Host report crashes to Breakpad (Windows only). The user must e… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing omaha namespace. 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 side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698