summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_service.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 20:10:45 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-15 20:10:45 +0000
commit61f5fc846af0f1a88eb4752ca0be166049331042 (patch)
tree3f2c0765b90445d6c61932baba0f84866e203fc5 /chrome/browser/extensions/extension_service.h
parentc24c7c8dcfaeafe953ec7e0d6067769a7f3172ff (diff)
downloadchromium_src-61f5fc846af0f1a88eb4752ca0be166049331042.zip
chromium_src-61f5fc846af0f1a88eb4752ca0be166049331042.tar.gz
chromium_src-61f5fc846af0f1a88eb4752ca0be166049331042.tar.bz2
Persist lazy background event listeners to the Prefs file.
Also only start the lazy bg page on extension install (via dispatching the onInstalled event). BUG=81752 TEST=no Review URL: https://chromiumcodereview.appspot.com/9383024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122133 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_service.h')
-rw-r--r--chrome/browser/extensions/extension_service.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index 97fc245..eaea412 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -118,7 +118,8 @@ class ExtensionServiceInterface : public SyncableService {
// themes sync to not use it directly.
virtual void CheckForUpdatesSoon() = 0;
- virtual void AddExtension(const Extension* extension) = 0;
+ // Returns true if the extension was successfully added.
+ virtual bool AddExtension(const Extension* extension) = 0;
virtual void UnloadExtension(
const std::string& extension_id,
@@ -395,7 +396,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.
- virtual void AddExtension(const Extension* extension) OVERRIDE;
+ virtual bool AddExtension(const Extension* extension) OVERRIDE;
// Called by the backend when an extension has been installed.
void OnExtensionInstalled(