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

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

Issue 2934373002: Record Code Signature of Downloaded DMG files (Closed)
Patch Set: adjusted test file path names 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..e9fa8a2e95200c7a382e20dd4e77d7cdc03624d5 100644
--- a/chrome/utility/safe_browsing/mac/dmg_iterator.cc
+++ b/chrome/utility/safe_browsing/mac/dmg_iterator.cc
@@ -35,6 +35,14 @@ bool DMGIterator::Open() {
return partitions_.size() > 0;
}
+uint64_t DMGIterator::GetDmgSignatureLength() {
+ return udif_.GetDmgSignatureLength();
+}
+
+uint8_t* DMGIterator::GetDmgSignatureData() {
+ 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