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

Unified Diff: src/client/linux/handler/minidump_descriptor.cc

Issue 1334473003: Add GPU fingerprint information to breakpad microdumps. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Created 5 years, 3 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: src/client/linux/handler/minidump_descriptor.cc
diff --git a/src/client/linux/handler/minidump_descriptor.cc b/src/client/linux/handler/minidump_descriptor.cc
index c601d35f04d8a2283386c5e1bb4be1bcad672521..3e87bfb8217024eb80c49ccb6981dcdf03701870 100644
--- a/src/client/linux/handler/minidump_descriptor.cc
+++ b/src/client/linux/handler/minidump_descriptor.cc
@@ -46,7 +46,8 @@ MinidumpDescriptor::MinidumpDescriptor(const MinidumpDescriptor& descriptor)
c_path_(NULL),
size_limit_(descriptor.size_limit_),
microdump_build_fingerprint_(descriptor.microdump_build_fingerprint_),
- microdump_product_info_(descriptor.microdump_product_info_) {
+ microdump_product_info_(descriptor.microdump_product_info_),
+ microdump_gpu_fingerprint_(descriptor.microdump_gpu_fingerprint_) {
// The copy constructor is not allowed to be called on a MinidumpDescriptor
// with a valid path_, as getting its c_path_ would require the heap which
// can cause problems in compromised environments.
@@ -69,6 +70,7 @@ MinidumpDescriptor& MinidumpDescriptor::operator=(
size_limit_ = descriptor.size_limit_;
microdump_build_fingerprint_ = descriptor.microdump_build_fingerprint_;
microdump_product_info_ = descriptor.microdump_product_info_;
+ microdump_gpu_fingerprint_ = descriptor.microdump_gpu_fingerprint_;
return *this;
}
@@ -97,4 +99,10 @@ void MinidumpDescriptor::SetMicrodumpProductInfo(const char* product_info) {
microdump_product_info_ = product_info;
}
+void MinidumpDescriptor::SetMicrodumpGPUFingerprint(
+ const char* gpu_fingerprint) {
+ assert(mode_ == kWriteMicrodumpToConsole);
+ microdump_gpu_fingerprint_ = gpu_fingerprint;
+}
+
} // namespace google_breakpad

Powered by Google App Engine
This is Rietveld 408576698