| Index: chrome/browser/notifications/balloon_collection_base.cc
|
| ===================================================================
|
| --- chrome/browser/notifications/balloon_collection_base.cc (revision 67750)
|
| +++ chrome/browser/notifications/balloon_collection_base.cc (working copy)
|
| @@ -63,6 +63,15 @@
|
| return !to_close.empty();
|
| }
|
|
|
| +void BalloonCollectionBase::CloseAll() {
|
| + // Use a local list of balloons to close to avoid breaking
|
| + // iterator changes on each close.
|
| + Balloons to_close = balloons_;
|
| + for (Balloons::iterator iter = to_close.begin();
|
| + iter != to_close.end(); ++iter)
|
| + (*iter)->CloseByScript();
|
| +}
|
| +
|
| Balloon* BalloonCollectionBase::FindBalloon(
|
| const Notification& notification) {
|
| Balloons::iterator iter;
|
|
|