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

Unified Diff: chrome/browser/background/background_contents_service.cc

Issue 8400032: Remove references to NewRunnableFunction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64c73538b484b1b5f370ca9f4580009db9e8c6ae..cc5109cad60b92f1521f335d6f24e313071410c3 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/background/background_contents_service.h"
#include "base/basictypes.h"
+#include "base/bind.h"
#include "base/command_line.h"
#include "base/string_util.h"
#include "base/utf_string_conversions.h"
@@ -44,9 +45,8 @@ void CloseBalloon(const std::string id) {
void ScheduleCloseBalloon(const std::string& extension_id) {
if (!MessageLoop::current()) // For unit_tests
return;
- MessageLoop::current()->PostTask(FROM_HERE,
- NewRunnableFunction(&CloseBalloon,
- kNotificationPrefix + extension_id));
+ MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&CloseBalloon, kNotificationPrefix + extension_id));
}
class CrashNotificationDelegate : public NotificationDelegate {
@@ -293,8 +293,8 @@ 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(FROM_HERE,
- NewRunnableFunction(&ShowBalloon, extension, profile));
+ MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&ShowBalloon, extension, profile));
break;
}
case chrome::NOTIFICATION_EXTENSION_UNLOADED:
« no previous file with comments | « no previous file | chrome/browser/background/background_mode_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698