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

Unified Diff: extensions/browser/updater/extension_downloader.cc

Issue 829583002: Validate hash_sha256 checksum on .crx update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add histogram description. Created 6 years 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: extensions/browser/updater/extension_downloader.cc
diff --git a/extensions/browser/updater/extension_downloader.cc b/extensions/browser/updater/extension_downloader.cc
index da4ff410bf4a2f1a6f29f5b88f3de58c4779ba47..0425c18ee2dff92cbe728de4289386584921676b 100644
--- a/extensions/browser/updater/extension_downloader.cc
+++ b/extensions/browser/updater/extension_downloader.cc
@@ -731,13 +731,10 @@ void ExtensionDownloader::NotifyDelegateDownloadFinished(
scoped_ptr<ExtensionFetch> fetch_data,
const base::FilePath& crx_path,
bool file_ownership_passed) {
- delegate_->OnExtensionDownloadFinished(fetch_data->id,
- crx_path,
- file_ownership_passed,
- fetch_data->url,
- fetch_data->version,
- ping_results_[fetch_data->id],
- fetch_data->request_ids);
+ delegate_->OnExtensionDownloadFinished(
+ fetch_data->id, crx_path, fetch_data->package_hash, file_ownership_passed,
+ fetch_data->url, fetch_data->version, ping_results_[fetch_data->id],
+ fetch_data->request_ids);
ping_results_.erase(fetch_data->id);
}

Powered by Google App Engine
This is Rietveld 408576698