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

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

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: addressing comments Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/utility/safe_browsing/mac/dmg_iterator.cc
diff --git a/chrome/utility/safe_browsing/mac/dmg_iterator.cc b/chrome/utility/safe_browsing/mac/dmg_iterator.cc
index 75f0512074276c2c1fd4ff2a45c6189d91cc75f9..7da72f42cdcc26cb06f023284ab32fec445c7d9b 100644
--- a/chrome/utility/safe_browsing/mac/dmg_iterator.cc
+++ b/chrome/utility/safe_browsing/mac/dmg_iterator.cc
@@ -35,6 +35,10 @@ bool DMGIterator::Open() {
return partitions_.size() > 0;
}
+const std::vector<uint8_t>& DMGIterator::GetCodeSignature() {
+ return udif_.GetDmgSignatureData();
+}
+
bool DMGIterator::Next() {
// Iterate through all the HFS partitions in the DMG file.
for (; current_partition_ < partitions_.size(); ++current_partition_) {

Powered by Google App Engine
This is Rietveld 408576698