| Index: chrome/browser/extensions/extension_service.h
|
| diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
|
| index 47cc52dfea9ed30589e1ffbb6c3112d5b0a9cf78..ed3b6d482b3f0d4c663a634dadf309f98e445ec8 100644
|
| --- a/chrome/browser/extensions/extension_service.h
|
| +++ b/chrome/browser/extensions/extension_service.h
|
| @@ -113,6 +113,14 @@ class ExtensionServiceInterface : public SyncableService {
|
| // TODO(akalin): Remove this method (and others) once we refactor
|
| // themes sync to not use it directly.
|
| virtual void CheckForUpdatesSoon() = 0;
|
| +
|
| + virtual void AddExtension(const Extension* extension) = 0;
|
| +
|
| + virtual void UnloadExtension(
|
| + const std::string& extension_id,
|
| + extension_misc::UnloadedExtensionReason reason) = 0;
|
| +
|
| + virtual bool is_ready() = 0;
|
| };
|
|
|
| // Manages installed and running Chromium extensions.
|
| @@ -309,8 +317,9 @@ class ExtensionService
|
| void CheckForExternalUpdates();
|
|
|
| // Unload the specified extension.
|
| - void UnloadExtension(const std::string& extension_id,
|
| - extension_misc::UnloadedExtensionReason reason);
|
| + virtual void UnloadExtension(
|
| + const std::string& extension_id,
|
| + extension_misc::UnloadedExtensionReason reason);
|
|
|
| // Unload all extensions. This is currently only called on shutdown, and
|
| // does not send notifications.
|
| @@ -357,7 +366,7 @@ class ExtensionService
|
| // Adds |extension| to this ExtensionService and notifies observers than an
|
| // extension has been loaded. Called by the backend after an extension has
|
| // been loaded from a file and installed.
|
| - void AddExtension(const Extension* extension);
|
| + virtual void AddExtension(const Extension* extension);
|
|
|
| // Called by the backend when an extension has been installed.
|
| void OnExtensionInstalled(
|
| @@ -412,7 +421,7 @@ class ExtensionService
|
| ExtensionContentSettingsStore* GetExtensionContentSettingsStore();
|
|
|
| // Whether the extension service is ready.
|
| - bool is_ready() { return ready_; }
|
| + virtual bool is_ready() { return ready_; }
|
|
|
| extensions::ComponentLoader* component_loader() {
|
| return component_loader_.get();
|
|
|