Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: chrome/browser/notifications/balloon_collection_impl.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/balloon_collection_impl.cc
diff --git a/chrome/browser/notifications/balloon_collection_impl.cc b/chrome/browser/notifications/balloon_collection_impl.cc
index 08971de7785614d1225c5613dc8ec25efc32ff82..1d032d2d02bc4aa4bbd57cb97ed167dabb1282fc 100644
--- a/chrome/browser/notifications/balloon_collection_impl.cc
+++ b/chrome/browser/notifications/balloon_collection_impl.cc
@@ -235,14 +235,14 @@ gfx::Rect BalloonCollectionImpl::GetBalloonsBoundingBox() const {
#if USE_OFFSETS
void BalloonCollectionImpl::AddMessageLoopObserver() {
if (!added_as_message_loop_observer_) {
- MessageLoopForUI::current()->AddObserver(this);
+ base::MessageLoopForUI::current()->AddObserver(this);
added_as_message_loop_observer_ = true;
}
}
void BalloonCollectionImpl::RemoveMessageLoopObserver() {
if (added_as_message_loop_observer_) {
- MessageLoopForUI::current()->RemoveObserver(this);
+ base::MessageLoopForUI::current()->RemoveObserver(this);
added_as_message_loop_observer_ = false;
}
}
@@ -267,7 +267,7 @@ void BalloonCollectionImpl::HandleMouseMoveEvent() {
// Mouse has left the region. Schedule a reposition after
// a short delay.
if (!reposition_factory_.HasWeakPtrs()) {
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&BalloonCollectionImpl::CancelOffsets,
reposition_factory_.GetWeakPtr()),

Powered by Google App Engine
This is Rietveld 408576698