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() { |