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

Unified Diff: snapshot/win/module_snapshot_win.cc

Issue 1311003003: Implement ModuleSnapshotWin::UUID (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 4 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 | « no previous file | snapshot/win/pe_image_reader.h » ('j') | snapshot/win/pe_image_reader.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/win/module_snapshot_win.cc
diff --git a/snapshot/win/module_snapshot_win.cc b/snapshot/win/module_snapshot_win.cc
index 1819a45baa1808c150ab7fc8e3e10679054c813e..f1536f5599e0553dba931a86d68c5aefda840ac1 100644
--- a/snapshot/win/module_snapshot_win.cc
+++ b/snapshot/win/module_snapshot_win.cc
@@ -148,7 +148,10 @@ ModuleSnapshot::ModuleType ModuleSnapshotWin::GetModuleType() const {
void ModuleSnapshotWin::UUID(crashpad::UUID* uuid) const {
INITIALIZATION_STATE_DCHECK_VALID(initialized_);
- CHECK(false) << "TODO(scottmg)";
+ // TODO(scottmg): Also pass the age and pdbname through to snapshot?
+ DWORD age;
+ std::string pdbname;
+ pe_image_reader_->DebugDirectoryInformation(uuid, &age, &pdbname);
Mark Mentovai 2015/08/31 21:48:20 If this fails, reinitialize uuid to the default UU
scottmg 2015/08/31 23:05:01 Done.
}
std::vector<std::string> ModuleSnapshotWin::AnnotationsVector() const {
« no previous file with comments | « no previous file | snapshot/win/pe_image_reader.h » ('j') | snapshot/win/pe_image_reader.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698