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

Unified Diff: src/platform/window_manager/main.cc

Issue 495008: wm: Include breakpad. (Closed)
Patch Set: Created 11 years 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
« no previous file with comments | « src/platform/window_manager/SConstruct ('k') | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/window_manager/main.cc
diff --git a/src/platform/window_manager/main.cc b/src/platform/window_manager/main.cc
index b9af2b6b7b736e683617430a0402612d1e660499..a6188e73416af6db3c929eeda9c9e94666fd0c3e 100644
--- a/src/platform/window_manager/main.cc
+++ b/src/platform/window_manager/main.cc
@@ -20,6 +20,7 @@ extern "C" {
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/string_util.h"
+#include "handler/exception_handler.h"
#include "window_manager/clutter_interface.h"
#include "window_manager/window_manager.h"
#include "window_manager/real_x_connection.h"
@@ -32,6 +33,8 @@ DEFINE_string(log_dir, ".",
DEFINE_bool(logtostderr, false,
"Should logs be written to stderr instead of to a file in "
"--log_dir?");
+DEFINE_string(minidump_dir, ".",
+ "Directory where crash minidumps should be written");
using chromeos::ClutterInterface;
using chromeos::MockClutterInterface;
@@ -56,6 +59,9 @@ int main(int argc, char** argv) {
google::ParseCommandLineFlags(&argc, &argv, true);
CommandLine::Init(argc, argv);
+ google_breakpad::ExceptionHandler exception_handler(
+ FLAGS_minidump_dir, NULL, NULL, NULL, true);
+
if (!FLAGS_logtostderr) {
if (!file_util::CreateDirectory(FilePath(FLAGS_log_dir)))
LOG(ERROR) << "Unable to create logging directory " << FLAGS_log_dir;
« no previous file with comments | « src/platform/window_manager/SConstruct ('k') | src/scripts/build_platform_packages.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698