summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tabs
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 19:56:49 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-04 19:56:49 +0000
commitc057ed7f234d1b02858fdeed7990ebff148f08b1 (patch)
treec1870082c456ed35b1bd7a549a894df98ab33cb9 /chrome/browser/tabs
parentb70f8522356988f608a2341dfcbcbe5166c79e08 (diff)
downloadchromium_src-c057ed7f234d1b02858fdeed7990ebff148f08b1.zip
chromium_src-c057ed7f234d1b02858fdeed7990ebff148f08b1.tar.gz
chromium_src-c057ed7f234d1b02858fdeed7990ebff148f08b1.tar.bz2
Profiles: Introduce AllBrowserContextsAndSources().
Eventually, we need to remove all current instances of AllSources(). One by one, they need to either changed to listen to a specific notification source, or (in very few cases where we actually are listening for a global notification) they need to work correctly in the presence of multiple profiles, in which case they'll be turned to AllBrowserContextsAndSources(). This patch, in addition: - Deletes more unused notifications. - Changes a few AllSources() calls to listen to specific objects. BUG=87457 TEST=none Review URL: http://codereview.chromium.org/7548022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95469 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tabs')
-rw-r--r--chrome/browser/tabs/tab_strip_model.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/tabs/tab_strip_model.cc b/chrome/browser/tabs/tab_strip_model.cc
index b4fc124..3134983 100644
--- a/chrome/browser/tabs/tab_strip_model.cc
+++ b/chrome/browser/tabs/tab_strip_model.cc
@@ -68,7 +68,7 @@ TabStripModel::TabStripModel(TabStripModelDelegate* delegate, Profile* profile)
DCHECK(delegate_);
registrar_.Add(this,
content::NOTIFICATION_TAB_CONTENTS_DESTROYED,
- NotificationService::AllSources());
+ NotificationService::AllBrowserContextsAndSources());
registrar_.Add(this,
chrome::NOTIFICATION_EXTENSION_UNLOADED,
Source<Profile>(profile_));