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

Unified Diff: chrome/browser/background/background_contents_service.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/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index ac9cb009fd7787832e546162d3e8c08c08664b75..84f3fd5de35d482fd1cc2ceb01032fcc51b8eb0d 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -56,9 +56,9 @@ void CloseBalloon(const std::string id) {
}
void ScheduleCloseBalloon(const std::string& extension_id) {
- if (!MessageLoop::current()) // For unit_tests
+ if (!base::MessageLoop::current()) // For unit_tests
return;
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(&CloseBalloon, kNotificationPrefix + extension_id));
}
@@ -329,7 +329,7 @@ void BackgroundContentsService::Observe(
// notifications for this extension to be cancelled by
// DesktopNotificationService. For this reason, instead of showing the
// balloon right now, we schedule it to show a little later.
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE, base::Bind(&ShowBalloon, extension, profile));
break;
}

Powered by Google App Engine
This is Rietveld 408576698