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

Unified Diff: extensions/common/update_manifest.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/common/update_manifest.cc
diff --git a/extensions/common/update_manifest.cc b/extensions/common/update_manifest.cc
index 26d794f11f4ec9f25262169d98082473399ad41e..1446b955d8b6331882cf7e5441cf8241a327fade 100644
--- a/extensions/common/update_manifest.cc
+++ b/extensions/common/update_manifest.cc
@@ -189,7 +189,7 @@ static bool ParseSingleAppTag(xmlNode* app_node, xmlNs* xml_namespace,
// package_hash is optional. It is only required for blacklist. It is a
// sha256 hash of the package in hex format.
- result->package_hash = GetAttribute(updatecheck, "hash");
+ result->package_hash = GetAttribute(updatecheck, "hash_sha256");
int size = 0;
if (base::StringToInt(GetAttribute(updatecheck, "size"), &size)) {

Powered by Google App Engine
This is Rietveld 408576698