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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_tab_helper.cc

Issue 7635026: Profiles: Change bookmark notifications implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 9 years, 4 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 | « chrome/browser/extensions/extension_bookmarks_module.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
index c090f7b37f84bf0c2a9b115052478e496f33b7fe..7a8cbb1010a47b6da23e79e198d0d2510312bc7a 100644
--- a/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_tab_helper.cc
@@ -26,9 +26,10 @@ BookmarkTabHelper::BookmarkTabHelper(TabContentsWrapper* tab_contents)
delegate_(NULL),
bookmark_drag_(NULL) {
// Register for notifications about URL starredness changing on any profile.
- Source<Profile> source(tab_contents->profile());
- registrar_.Add(this, chrome::NOTIFICATION_URLS_STARRED, source);
- registrar_.Add(this, chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED, source);
+ registrar_.Add(this, chrome::NOTIFICATION_URLS_STARRED,
+ NotificationService::AllBrowserContextsAndSources());
+ registrar_.Add(this, chrome::NOTIFICATION_BOOKMARK_MODEL_LOADED,
+ NotificationService::AllBrowserContextsAndSources());
}
BookmarkTabHelper::~BookmarkTabHelper() {
« no previous file with comments | « chrome/browser/extensions/extension_bookmarks_module.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698