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

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: Created 7 years, 8 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 e6943a1924e100ced534c1af273c40757d39bd5a..435cc1715c8f33fbc70646eb942a4eabce718f37 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