| Index: chrome/browser/extensions/extension_service.h
|
| diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
|
| index 1771e4e9dcfd51cef830a4b2c8f92825c684b969..7367255b758a6b17e32a8802b34b9d1d520c0c80 100644
|
| --- a/chrome/browser/extensions/extension_service.h
|
| +++ b/chrome/browser/extensions/extension_service.h
|
| @@ -64,9 +64,14 @@ class ExtensionServiceInterface {
|
| virtual ~ExtensionServiceInterface() {}
|
| virtual const ExtensionList* extensions() const = 0;
|
| virtual PendingExtensionManager* pending_extension_manager() = 0;
|
| - virtual void UpdateExtension(const std::string& id,
|
| - const FilePath& path,
|
| - const GURL& download_url) = 0;
|
| +
|
| + // Install an update. Return true if the install can be started.
|
| + // Set out_crx_installer to the installer if one was started.
|
| + virtual bool UpdateExtension(
|
| + const std::string& id,
|
| + const FilePath& path,
|
| + const GURL& download_url,
|
| + CrxInstaller** out_crx_installer) = 0;
|
| virtual const Extension* GetExtensionById(const std::string& id,
|
| bool include_disabled) const = 0;
|
| virtual const Extension* GetInstalledExtension(
|
| @@ -262,9 +267,11 @@ class ExtensionService
|
| // |extension_path|.
|
| // TODO(aa): This method can be removed. ExtensionUpdater could use
|
| // CrxInstaller directly instead.
|
| - virtual void UpdateExtension(const std::string& id,
|
| - const FilePath& extension_path,
|
| - const GURL& download_url) OVERRIDE;
|
| + virtual bool UpdateExtension(
|
| + const std::string& id,
|
| + const FilePath& extension_path,
|
| + const GURL& download_url,
|
| + CrxInstaller** out_crx_installer) OVERRIDE;
|
|
|
| // Reloads the specified extension.
|
| void ReloadExtension(const std::string& extension_id);
|
|
|