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

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

Issue 8215002: base::Bind: Cleanup in test_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review 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
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_client.cc ('k') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_webview_delegate_gtk.cc
diff --git a/webkit/tools/test_shell/test_webview_delegate_gtk.cc b/webkit/tools/test_shell/test_webview_delegate_gtk.cc
index ab60381c1243f4c4172e90126c89cfdfe60dd5a0..6adfa0cec71e969b6b697883c948287de26c1614 100644
--- a/webkit/tools/test_shell/test_webview_delegate_gtk.cc
+++ b/webkit/tools/test_shell/test_webview_delegate_gtk.cc
@@ -9,6 +9,7 @@
#include <gtk/gtk.h>
#include <gdk/gdkx.h>
+#include "base/bind.h"
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
#include "net/base/net_errors.h"
@@ -104,8 +105,9 @@ void TestWebViewDelegate::show(WebNavigationPolicy policy) {
void TestWebViewDelegate::closeWidgetSoon() {
if (this == shell_->delegate()) {
- MessageLoop::current()->PostTask(FROM_HERE, NewRunnableFunction(
- &gtk_widget_destroy, GTK_WIDGET(shell_->mainWnd())));
+ MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&gtk_widget_destroy, GTK_WIDGET(shell_->mainWnd())));
} else if (this == shell_->popup_delegate()) {
shell_->ClosePopup();
}
« no previous file with comments | « webkit/tools/test_shell/test_shell_devtools_client.cc ('k') | webkit/tools/test_shell/webwidget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698