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

Unified Diff: webkit/tools/test_shell/notification_presenter.cc

Issue 8215002: base::Bind: Cleanup in test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac build fix. 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
Index: webkit/tools/test_shell/notification_presenter.cc
diff --git a/webkit/tools/test_shell/notification_presenter.cc b/webkit/tools/test_shell/notification_presenter.cc
index 1628f47cee3fd7690d78f4db9a81167c01a71efe..b5f72341d6f0bbf89ea1dc1c3e19f5fe2e61295e 100644
--- a/webkit/tools/test_shell/notification_presenter.cc
+++ b/webkit/tools/test_shell/notification_presenter.cc
@@ -4,6 +4,7 @@
#include "webkit/tools/test_shell/notification_presenter.h"
+#include "base/bind.h"
#include "base/message_loop.h"
#include "base/task.h"
#include "googleurl/src/gurl.h"
@@ -74,8 +75,8 @@ bool TestNotificationPresenter::show(const WebNotification& notification) {
WebNotification event_target(notification);
- MessageLoop::current()->PostTask(FROM_HERE,
- NewRunnableFunction(&DeferredDisplayDispatch, event_target));
+ MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(&DeferredDisplayDispatch, event_target));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698