Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5073)

Unified Diff: chrome/browser/extensions/extension_bookmarks_module.cc

Issue 333041: Take 2 at browser_sync::ExtensionsActivityMonitor.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_bookmarks_module.cc
===================================================================
--- chrome/browser/extensions/extension_bookmarks_module.cc (revision 30303)
+++ chrome/browser/extensions/extension_bookmarks_module.cc (working copy)
@@ -114,7 +114,14 @@
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(
« no previous file with comments | « chrome/browser/extensions/extension_bookmarks_module.h ('k') | chrome/browser/extensions/extension_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698