diff options
author | rpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 23:00:33 +0000 |
---|---|---|
committer | rpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 23:00:33 +0000 |
commit | 07ad9628854db580899ba0187f4bb51bf10e9572 (patch) | |
tree | d63f14fc6b2fbe3349d1dd6128e5d1c744d4a943 /chrome/browser/extensions/api/permissions | |
parent | 67255b68fc6d15dd5ede9e851de71533bf1aac69 (diff) | |
download | chromium_src-07ad9628854db580899ba0187f4bb51bf10e9572.zip chromium_src-07ad9628854db580899ba0187f4bb51bf10e9572.tar.gz chromium_src-07ad9628854db580899ba0187f4bb51bf10e9572.tar.bz2 |
Record histogram of extension API usage
We create one histogram per function name and record each call.
BUG=37963
TBR=sky@chromium.org (for mechanical changes in a bunch of chrome/ subdirs)
Review URL: https://chromiumcodereview.appspot.com/11577015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/permissions')
-rw-r--r-- | chrome/browser/extensions/api/permissions/permissions_api.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/extensions/api/permissions/permissions_api.h b/chrome/browser/extensions/api/permissions/permissions_api.h index 21281e2..e15f64c 100644 --- a/chrome/browser/extensions/api/permissions/permissions_api.h +++ b/chrome/browser/extensions/api/permissions/permissions_api.h @@ -17,7 +17,7 @@ class ExtensionService; // chrome.permissions.contains class PermissionsContainsFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("permissions.contains") + DECLARE_EXTENSION_FUNCTION("permissions.contains", PERMISSIONS_CONTAINS) protected: virtual ~PermissionsContainsFunction() {} @@ -29,7 +29,7 @@ class PermissionsContainsFunction : public SyncExtensionFunction { // chrome.permissions.getAll class PermissionsGetAllFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("permissions.getAll") + DECLARE_EXTENSION_FUNCTION("permissions.getAll", PERMISSIONS_GETALL) protected: virtual ~PermissionsGetAllFunction() {} @@ -41,7 +41,7 @@ class PermissionsGetAllFunction : public SyncExtensionFunction { // chrome.permissions.remove class PermissionsRemoveFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("permissions.remove") + DECLARE_EXTENSION_FUNCTION("permissions.remove", PERMISSIONS_REMOVE) protected: virtual ~PermissionsRemoveFunction() {} @@ -54,7 +54,7 @@ class PermissionsRemoveFunction : public SyncExtensionFunction { class PermissionsRequestFunction : public AsyncExtensionFunction, public ExtensionInstallPrompt::Delegate { public: - DECLARE_EXTENSION_FUNCTION_NAME("permissions.request") + DECLARE_EXTENSION_FUNCTION("permissions.request", PERMISSIONS_REQUEST) PermissionsRequestFunction(); |