Skip to content

Commit

Permalink
Call on_collection_changed_callback_ on chromeos
Browse files Browse the repository at this point in the history
BUG=81624,chromium-os:15176
TEST=pyauto notification will pass

Review URL: http://codereview.chromium.org/7146027

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89368 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
oshima@google.com committed Jun 16, 2011
1 parent 34be058 commit a40723a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ void BalloonCollectionImpl::Add(const Notification& notification,
// There may be no listener in a unit test.
if (space_change_listener_)
space_change_listener_->OnBalloonSpaceChanged();

// This is used only for testing.
if (on_collection_changed_callback_.get())
on_collection_changed_callback_->Run();
}

bool BalloonCollectionImpl::AddWebUIMessageCallback(
Expand Down Expand Up @@ -131,6 +135,10 @@ void BalloonCollectionImpl::OnBalloonClosed(Balloon* source) {
// There may be no listener in a unit test.
if (space_change_listener_)
space_change_listener_->OnBalloonSpaceChanged();

// This is used only for testing.
if (on_collection_changed_callback_.get())
on_collection_changed_callback_->Run();
}

const BalloonCollectionImpl::Balloons&
Expand Down

0 comments on commit a40723a

Please sign in to comment.