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

Unified Diff: chrome/app/mash/mash_crash_reporter_client.h

Issue 2643853005: chromeos: Initial support for crash reporting for chrome --mash (Closed)
Patch Set: sadrul comments Created 3 years, 11 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
« no previous file with comments | « chrome/app/mash/BUILD.gn ('k') | chrome/app/mash/mash_crash_reporter_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/mash/mash_crash_reporter_client.h
diff --git a/chrome/app/mash/mash_crash_reporter_client.h b/chrome/app/mash/mash_crash_reporter_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..6cd8502c882d8d89c8072e78a0ff057243e6e314
--- /dev/null
+++ b/chrome/app/mash/mash_crash_reporter_client.h
@@ -0,0 +1,38 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_
+#define CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_
+
+#include "base/macros.h"
+#include "components/crash/content/app/crash_reporter_client.h"
+
+#if !defined(OS_CHROMEOS)
+#error Unsupported platform
+#endif
+
+// Crash reporting support for chrome --mash. Used for the root process, ash,
+// and other standalone services. Chrome content_browser handles its own crash
+// reporting via ChromeCrashReporterClient.
+// TODO(jamescook): Eliminate chrome dependencies from ChromeCrashReporterClient
+// and share more code with this class.
+class MashCrashReporterClient : public crash_reporter::CrashReporterClient {
+ public:
+ MashCrashReporterClient();
+ ~MashCrashReporterClient() override;
+
+ // crash_reporter::CrashReporterClient implementation.
+ void GetProductNameAndVersion(const char** product_name,
+ const char** version) override;
+ base::FilePath GetReporterLogFilename() override;
+ bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
+ size_t RegisterCrashKeys() override;
+ bool IsRunningUnattended() override;
+ bool GetCollectStatsConsent() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MashCrashReporterClient);
+};
+
+#endif // CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_
« no previous file with comments | « chrome/app/mash/BUILD.gn ('k') | chrome/app/mash/mash_crash_reporter_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698