summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_bookmarks_module.cc
diff options
context:
space:
mode:
authortim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 03:03:43 +0000
committertim@chromium.org <tim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-28 03:03:43 +0000
commit6f5366ac2dba6f208b5c2546b4f2c1a93bd4fbb1 (patch)
tree1985f6c9956989d5273e1c59a423723d4e37ca6c /chrome/browser/extensions/extension_bookmarks_module.cc
parented45566a74d2a8dae55ab4e2589ce5f0d78e49b2 (diff)
downloadchromium_src-6f5366ac2dba6f208b5c2546b4f2c1a93bd4fbb1.zip
chromium_src-6f5366ac2dba6f208b5c2546b4f2c1a93bd4fbb1.tar.gz
chromium_src-6f5366ac2dba6f208b5c2546b4f2c1a93bd4fbb1.tar.bz2
Take 2 at browser_sync::ExtensionsActivityMonitor.
Original: http://codereview.chromium.org/325001/show TEST=ExtensionsActivityMonitorTest Review URL: http://codereview.chromium.org/333041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_bookmarks_module.cc')
-rw-r--r--chrome/browser/extensions/extension_bookmarks_module.cc9
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(