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

Unified Diff: chrome/utility/safe_browsing/mac/dmg_analyzer.cc

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: correcting rebase mixup Created 3 years, 5 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: chrome/utility/safe_browsing/mac/dmg_analyzer.cc
diff --git a/chrome/utility/safe_browsing/mac/dmg_analyzer.cc b/chrome/utility/safe_browsing/mac/dmg_analyzer.cc
index 09ebf17f7f483f5229d737a6eae57063acac8fd8..6ba4e583a052a914af6ead56ef9c4a7ddd2a15d0 100644
--- a/chrome/utility/safe_browsing/mac/dmg_analyzer.cc
+++ b/chrome/utility/safe_browsing/mac/dmg_analyzer.cc
@@ -126,6 +126,8 @@ void AnalyzeDMGFile(base::File dmg_file, ArchiveAnalyzerResults* results) {
if (!iterator.Open())
return;
+ results->signature_blob = iterator.GetCodeSignature();
+
while (iterator.Next()) {
std::unique_ptr<ReadStream> stream = iterator.GetReadStream();
if (!stream || !feature_extractor.IsMachO(stream.get()))
« no previous file with comments | « chrome/test/data/safe_browsing/mach_o/signed-archive-signature.data ('k') | chrome/utility/safe_browsing/mac/dmg_iterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698