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

Unified Diff: chrome/browser/bookmarks/bookmark_model.cc

Issue 12310153: bookmarks: Remove bookmark loaded notification. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/bookmarks/bookmark_model.cc
diff --git a/chrome/browser/bookmarks/bookmark_model.cc b/chrome/browser/bookmarks/bookmark_model.cc
index 7c7458d9e3756899a07e5401d4d0c6b158ef2863..52533b4c2be72210353f7fc5c17cb7d33441eae5 100644
--- a/chrome/browser/bookmarks/bookmark_model.cc
+++ b/chrome/browser/bookmarks/bookmark_model.cc
@@ -27,7 +27,8 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_notification_types.h"
#include "content/public/browser/content_browser_client.h"
-#include "content/public/browser/notification_service.h"
+#include "content/public/browser/notification_details.h"
+#include "content/public/browser/notification_source.h"
#include "grit/generated_resources.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/l10n/l10n_util_collator.h"
@@ -744,12 +745,6 @@ void BookmarkModel::DoneLoading(BookmarkLoadDetails* details_delete_me) {
// Notify our direct observers.
FOR_EACH_OBSERVER(BookmarkModelObserver, observers_,
Loaded(this, details->ids_reassigned()));
-
- // And generic notification.
- content::NotificationService::current()->Notify(
- chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED,
- content::Source<content::BrowserContext>(profile_),
- content::NotificationService::NoDetails());
}
void BookmarkModel::RemoveAndDeleteNode(BookmarkNode* delete_me) {
« no previous file with comments | « no previous file | chrome/common/chrome_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698