summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_list.cc
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 22:11:43 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-25 22:11:43 +0000
commit3f34599d40afee4d071e33c12278931764dd7c56 (patch)
tree018bf8b9a56134fd022a12b964e297999fcb17f2 /chrome/browser/browser_list.cc
parentc9d989b20d74fcd1de89d5aad90f5ad11d11801c (diff)
downloadchromium_src-3f34599d40afee4d071e33c12278931764dd7c56.zip
chromium_src-3f34599d40afee4d071e33c12278931764dd7c56.tar.gz
chromium_src-3f34599d40afee4d071e33c12278931764dd7c56.tar.bz2
Bookmark menu work. Notes:
- "add bookmark" menu item enable state (e.g. disabled if no windows) - bookmark menus built dynamically (like before) - bookmark menus rebuild when a bookmark is added/removed - bookmark menus take the current browser to where you want to go - works with multiple windows (main window goes to bookmark location) - works with no windows (bookmarks open a new window) Review URL: http://codereview.chromium.org/49005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12501 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_list.cc')
-rw-r--r--chrome/browser/browser_list.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser_list.cc b/chrome/browser/browser_list.cc
index f583737..6665d15 100644
--- a/chrome/browser/browser_list.cc
+++ b/chrome/browser/browser_list.cc
@@ -180,6 +180,9 @@ BrowserList::list_type BrowserList::last_active_browsers_;
void BrowserList::SetLastActive(Browser* browser) {
RemoveBrowserFrom(browser, &last_active_browsers_);
last_active_browsers_.push_back(browser);
+
+ for (int i = 0; i < static_cast<int>(observers_.size()); i++)
+ observers_[i]->OnBrowserSetLastActive(browser);
}
// static