diff options
Diffstat (limited to 'chrome/browser/views/frame')
-rw-r--r-- | chrome/browser/views/frame/browser_view.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index 3714952..078faac 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -567,7 +567,9 @@ void BrowserView::AttachBrowserBubble(BrowserBubble* bubble) { } void BrowserView::DetachBrowserBubble(BrowserBubble* bubble) { - browser_bubbles_.erase(bubble); + BubbleSet::iterator it = browser_bubbles_.find(bubble); + if (it != browser_bubbles_.end()) + browser_bubbles_.erase(it); } /////////////////////////////////////////////////////////////////////////////// |