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

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: Fix unittest build for windows. Created 5 years, 10 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: extensions/browser/updater/extension_downloader.cc
diff --git a/extensions/browser/updater/extension_downloader.cc b/extensions/browser/updater/extension_downloader.cc
index da4ff410bf4a2f1a6f29f5b88f3de58c4779ba47..3e060835c0d13945448bee54bfee9b7260017809 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(
+ CRXFileInfo(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);
}
« no previous file with comments | « extensions/browser/sandboxed_unpacker_unittest.cc ('k') | extensions/browser/updater/extension_downloader_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698