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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_
6 #define CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "components/crash/content/app/crash_reporter_client.h"
10
11 #if !defined(OS_CHROMEOS)
12 #error Unsupported platform
13 #endif
14
15 // Crash reporting support for chrome --mash. Used for the root process, ash,
16 // and other standalone services. Chrome content_browser handles its own crash
17 // reporting via ChromeCrashReporterClient.
18 // TODO(jamescook): Eliminate chrome dependencies from ChromeCrashReporterClient
19 // and share more code with this class.
20 class MashCrashReporterClient : public crash_reporter::CrashReporterClient {
21 public:
22 MashCrashReporterClient();
23 ~MashCrashReporterClient() override;
24
25 // crash_reporter::CrashReporterClient implementation.
26 void GetProductNameAndVersion(const char** product_name,
27 const char** version) override;
28 base::FilePath GetReporterLogFilename() override;
29 bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
30 size_t RegisterCrashKeys() override;
31 bool IsRunningUnattended() override;
32 bool GetCollectStatsConsent() override;
33
34 private:
35 DISALLOW_COPY_AND_ASSIGN(MashCrashReporterClient);
36 };
37
38 #endif // CHROME_APP_MASH_MASH_CRASH_REPORTER_CLIENT_H_
OLDNEW
« 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