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

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: 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..80e92336df1c2b0dff66612dc1a84d7041ff4b75 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/breakpad.h"
// MIDL-generated declarations.
#include "remoting/host/elevated_controller.h"
@@ -29,6 +31,11 @@ class ElevatedControllerModuleWin
remoting::ElevatedControllerModuleWin _AtlModule;
int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) {
+ // Initializes the crash dump reports.
Peter Kasting 2012/06/14 20:16:27 Nit: This comment doesn't add anything to the code
alexeypa (please no reviews) 2012/06/15 18:45:49 Done.
+ if (remoting::IsCrashReportingEnabled()) {
+ remoting::InitializeCrashReporting();
+ }
+
CommandLine::Init(0, NULL);
// Register and initialize common controls.

Powered by Google App Engine
This is Rietveld 408576698