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

Side by Side Diff: chromecast/crash/android/cast_crash_reporter_client_android.h

Issue 1176003005: Chromecast: Android crash startup can't read path from /data/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: privileged flag --> process_type Created 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | chromecast/crash/android/cast_crash_reporter_client_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_ 5 #ifndef CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
6 #define CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_ 6 #define CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "components/crash/app/crash_reporter_client.h" 9 #include "components/crash/app/crash_reporter_client.h"
10 10
11 namespace chromecast { 11 namespace chromecast {
12 12
13 class CastCrashReporterClientAndroid 13 class CastCrashReporterClientAndroid
14 : public crash_reporter::CrashReporterClient { 14 : public crash_reporter::CrashReporterClient {
15 public: 15 public:
16 CastCrashReporterClientAndroid(); 16 explicit CastCrashReporterClientAndroid(const std::string& process_type);
17 ~CastCrashReporterClientAndroid() override; 17 ~CastCrashReporterClientAndroid() override;
18 18
19 // crash_reporter::CrashReporterClient implementation: 19 // crash_reporter::CrashReporterClient implementation:
20 void GetProductNameAndVersion(const char** product_name, 20 void GetProductNameAndVersion(const char** product_name,
21 const char** version) override; 21 const char** version) override;
22 base::FilePath GetReporterLogFilename() override; 22 base::FilePath GetReporterLogFilename() override;
23 bool GetCrashDumpLocation(base::FilePath* crash_dir) override; 23 bool GetCrashDumpLocation(base::FilePath* crash_dir) override;
24 int GetAndroidMinidumpDescriptor() override; 24 int GetAndroidMinidumpDescriptor() override;
25 bool GetCollectStatsConsent() override; 25 bool GetCollectStatsConsent() override;
26 bool EnableBreakpadForProcess( 26 bool EnableBreakpadForProcess(
27 const std::string& process_type) override; 27 const std::string& process_type) override;
28 size_t RegisterCrashKeys() override; 28 size_t RegisterCrashKeys() override;
29 29
30 private: 30 private:
31 std::string process_type_;
32
31 DISALLOW_COPY_AND_ASSIGN(CastCrashReporterClientAndroid); 33 DISALLOW_COPY_AND_ASSIGN(CastCrashReporterClientAndroid);
32 }; 34 };
33 35
34 } // namespace chromecast 36 } // namespace chromecast
35 37
36 #endif // CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_ 38 #endif // CHROMECAST_CRASH_ANDROID_CAST_CRASH_REPORTER_CLIENT_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/crash/android/cast_crash_reporter_client_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698