| Index: chrome/browser/extensions/unpacked_installer.cc
|
| diff --git a/chrome/browser/extensions/unpacked_installer.cc b/chrome/browser/extensions/unpacked_installer.cc
|
| index b4f3976ae77c295088af8b0e713588c641efd47a..36368aca93b1c68fb52ecd1cb8c311840d5f9fb5 100644
|
| --- a/chrome/browser/extensions/unpacked_installer.cc
|
| +++ b/chrome/browser/extensions/unpacked_installer.cc
|
| @@ -350,6 +350,11 @@ void UnpackedInstaller::ReportExtensionLoadError(const std::string &error) {
|
| service_weak_->profile(),
|
| be_noisy_on_failure_);
|
| }
|
| +
|
| + if (!callback_.is_null()) {
|
| + callback_.Run(nullptr, extension_path_, error);
|
| + callback_.Reset();
|
| + }
|
| }
|
|
|
| void UnpackedInstaller::InstallExtension() {
|
| @@ -361,6 +366,11 @@ void UnpackedInstaller::InstallExtension() {
|
|
|
| service_weak_->OnExtensionInstalled(
|
| extension(), syncer::StringOrdinal(), kInstallFlagInstallImmediately);
|
| +
|
| + if (!callback_.is_null()) {
|
| + callback_.Run(extension(), extension_path_, std::string());
|
| + callback_.Reset();
|
| + }
|
| }
|
|
|
| } // namespace extensions
|
|
|