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

Unified Diff: chrome/browser/extensions/updater/extension_updater.h

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: chrome/browser/extensions/updater/extension_updater.h
diff --git a/chrome/browser/extensions/updater/extension_updater.h b/chrome/browser/extensions/updater/extension_updater.h
index 7e09908cfa6bbdd6a47d02dbc5084066a1a654f1..4823089a40297aac7453cc24f35368d24cdbf768 100644
--- a/chrome/browser/extensions/updater/extension_updater.h
+++ b/chrome/browser/extensions/updater/extension_updater.h
@@ -141,12 +141,14 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate,
FetchedCRXFile();
FetchedCRXFile(const std::string& id,
const base::FilePath& path,
+ const std::string& hash,
bool file_ownership_passed,
const std::set<int>& request_ids);
~FetchedCRXFile();
std::string extension_id;
base::FilePath path;
+ std::string hash;
bool file_ownership_passed;
std::set<int> request_ids;
};
@@ -200,6 +202,7 @@ class ExtensionUpdater : public ExtensionDownloaderDelegate,
const std::set<int>& request_ids) override;
void OnExtensionDownloadFinished(const std::string& id,
const base::FilePath& path,
+ const std::string& hash,
bool file_ownership_passed,
const GURL& download_url,
const std::string& version,

Powered by Google App Engine
This is Rietveld 408576698