| Index: chrome/browser/extensions/crx_installer.cc
|
| diff --git a/chrome/browser/extensions/crx_installer.cc b/chrome/browser/extensions/crx_installer.cc
|
| index 788567e97933afcdfb806a66d5dd9ce025130a38..635c5d4906ab941dc5ccb5ab921b19aca74d18eb 100644
|
| --- a/chrome/browser/extensions/crx_installer.cc
|
| +++ b/chrome/browser/extensions/crx_installer.cc
|
| @@ -170,6 +170,11 @@ CrxInstaller::~CrxInstaller() {
|
| }
|
|
|
| void CrxInstaller::InstallCrx(const base::FilePath& source_file) {
|
| + CheckAndInstallCrx(source_file, std::string());
|
| +}
|
| +
|
| +void CrxInstaller::CheckAndInstallCrx(const base::FilePath& source_file,
|
| + const std::string& package_hash) {
|
| ExtensionService* service = service_weak_.get();
|
| if (!service || service->browser_terminating())
|
| return;
|
| @@ -178,13 +183,9 @@ void CrxInstaller::InstallCrx(const base::FilePath& source_file) {
|
|
|
| source_file_ = source_file;
|
|
|
| - scoped_refptr<SandboxedUnpacker> unpacker(
|
| - new SandboxedUnpacker(source_file,
|
| - install_source_,
|
| - creation_flags_,
|
| - install_directory_,
|
| - installer_task_runner_.get(),
|
| - this));
|
| + scoped_refptr<SandboxedUnpacker> unpacker(new SandboxedUnpacker(
|
| + source_file, package_hash, install_source_, creation_flags_,
|
| + install_directory_, installer_task_runner_.get(), this));
|
|
|
| if (!installer_task_runner_->PostTask(
|
| FROM_HERE,
|
|
|