diff options
author | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 02:42:17 +0000 |
---|---|---|
committer | tim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-27 02:42:17 +0000 |
commit | 65d0b12bc9aaf8acdfe92a5d57e98d021b591ba4 (patch) | |
tree | b10d305b3bdc27dbc3ee305b1c8f31c15bca040c /chrome/browser/extensions/extension_bookmarks_module.cc | |
parent | 71b0c7f62e9c674adb0ffc785ee0e8de05b55468 (diff) | |
download | chromium_src-65d0b12bc9aaf8acdfe92a5d57e98d021b591ba4.zip chromium_src-65d0b12bc9aaf8acdfe92a5d57e98d021b591ba4.tar.gz chromium_src-65d0b12bc9aaf8acdfe92a5d57e98d021b591ba4.tar.bz2 |
Introduce browser_sync::ExtensionsActivityMonitor to collect extensions API usage
for correlation to sync commit requests. Add ChromiumExtensionsActivity to sync.proto
to allow passing this data to sync servers.
BUG=25323
TEST=Added ExtensionsActivityMonitorTest. +Performing mutations on the bookmarks model via an extension should result in
ChromiumExtensionsActivity for each such extension showing up in CommitMessages.
Review URL: http://codereview.chromium.org/325001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30153 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_module.cc')
-rw-r--r-- | chrome/browser/extensions/extension_bookmarks_module.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_bookmarks_module.cc b/chrome/browser/extensions/extension_bookmarks_module.cc index 73cb032..ee5257c 100644 --- a/chrome/browser/extensions/extension_bookmarks_module.cc +++ b/chrome/browser/extensions/extension_bookmarks_module.cc @@ -114,7 +114,14 @@ void BookmarksFunction::Run() { ExtensionBookmarkEventRouter* event_router = ExtensionBookmarkEventRouter::GetSingleton(); event_router->Observe(model); - SendResponse(RunImpl()); + bool success = RunImpl(); + if (success) { + NotificationService::current()->Notify( + NotificationType::EXTENSION_BOOKMARKS_API_INVOKED, + Source<const Extension>(GetExtension()), + Details<const BookmarksFunction>(this)); + } + SendResponse(success); } bool BookmarksFunction::GetBookmarkIdAsInt64( |