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

Unified Diff: chrome/browser/extensions/crx_installer.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: chrome/browser/extensions/crx_installer.cc
diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
index a4207e715595fe57a8cbf7d4423bc63bc3a153c1..17cc1a9538eb4ce3ed9a958272fa56407e90c8ca 100644
--- a/chrome/browser/extensions/crx_installer.cc
+++ b/chrome/browser/extensions/crx_installer.cc
@@ -170,13 +170,17 @@ CrxInstaller::~CrxInstaller() {
}
void CrxInstaller::InstallCrx(const base::FilePath& source_file) {
+ InstallCrxFile(CRXFileInfo(source_file));
+}
+
+void CrxInstaller::InstallCrxFile(const CRXFileInfo& source_file) {
ExtensionService* service = service_weak_.get();
if (!service || service->browser_terminating())
return;
NotifyCrxInstallBegin();
- source_file_ = source_file;
+ source_file_ = source_file.path;
scoped_refptr<SandboxedUnpacker> unpacker(
new SandboxedUnpacker(source_file,
« no previous file with comments | « chrome/browser/extensions/crx_installer.h ('k') | chrome/browser/extensions/extension_gcm_app_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698