diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-17 22:27:06 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-17 22:27:06 +0000 |
commit | a3c76cf6556329a3ac79479f429ebd692763336d (patch) | |
tree | c0dfbb9e420559eb6f366a3cea0f4bb8580c0551 /chrome/common | |
parent | c8a60f399f12c4a04ebfdca34cd103b2f6cd2c20 (diff) | |
download | chromium_src-a3c76cf6556329a3ac79479f429ebd692763336d.zip chromium_src-a3c76cf6556329a3ac79479f429ebd692763336d.tar.gz chromium_src-a3c76cf6556329a3ac79479f429ebd692763336d.tar.bz2 |
Provide details about why we're dispatching runtime.onInstalled.
Also, unregister for the event after dispatching,
so we don't end up littering Preferences.
BUG=134319,145842
Review URL: https://chromiumcodereview.appspot.com/10916308
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/runtime.json | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/chrome/common/extensions/api/runtime.json b/chrome/common/extensions/api/runtime.json index 32b89fc..bc35782 100644 --- a/chrome/common/extensions/api/runtime.json +++ b/chrome/common/extensions/api/runtime.json @@ -90,7 +90,25 @@ { "name": "onInstalled", "type": "function", - "description": "Fired when the extension is first installed, and on each update to a new version." + "description": "Fired when the extension is first installed, and on each update to a new version.", + "parameters": [ + { + "type": "object", + "name": "details", + "properties": { + "reason": { + "type": "string", + "enum": ["install", "update"], + "description": "The reason that this event is being dispatched." + }, + "previousVersion": { + "type": "string", + "optional": true, + "description": "Indicates the previous version of the extension, which has just been updated. This is present only if 'reason' is 'update'." + } + } + } + ] }, { "name": "onSuspend", |