diff options
author | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 18:51:21 +0000 |
---|---|---|
committer | erikkay@chromium.org <erikkay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-21 18:51:21 +0000 |
commit | 31d2fd0291b4f829907a67dabdd07dfe61885117 (patch) | |
tree | b85dda1c90fece598e78dfc7486b3656d2ca16e5 /chrome/browser/views/frame | |
parent | c5614e366d5b3695f59e29418c78cdc1d5be6d0b (diff) | |
download | chromium_src-31d2fd0291b4f829907a67dabdd07dfe61885117.zip chromium_src-31d2fd0291b4f829907a67dabdd07dfe61885117.tar.gz chromium_src-31d2fd0291b4f829907a67dabdd07dfe61885117.tar.bz2 |
allow the handle to be hidden when moles are expanded
BUG=15494
TEST=none
Review URL: http://codereview.chromium.org/210031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26706 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index f94d52e..e7f4310 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -456,8 +456,11 @@ void BrowserView::WindowMoved() { status_bubble_->Reposition(); - BubbleSet::iterator bubble = browser_bubbles_.begin(); - for (; bubble != browser_bubbles_.end(); ++bubble) { + // Do safe iteration in case the bubble winds up closing as a result of this + // message. + for (BubbleSet::iterator i = browser_bubbles_.begin(); + i != browser_bubbles_.end();) { + BubbleSet::iterator bubble = i++; (*bubble)->BrowserWindowMoved(); } |