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

Unified Diff: chrome_frame/test/net/test_automation_resource_message_filter.cc

Issue 8536037: base::Bind: Low-hanging fruit conversions of NewRunnableFunction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win fix 4. Created 9 years, 1 month 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 | « chrome_frame/test/net/fake_external_tab.cc ('k') | chrome_frame/test/test_server_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/test/net/test_automation_resource_message_filter.cc
diff --git a/chrome_frame/test/net/test_automation_resource_message_filter.cc b/chrome_frame/test/net/test_automation_resource_message_filter.cc
index f7f00bcbe11277f641f16d91f7639a15e7226837..ed0ae271fb27784a525c47e6c9d9e65d5037398d 100644
--- a/chrome_frame/test/net/test_automation_resource_message_filter.cc
+++ b/chrome_frame/test/net/test_automation_resource_message_filter.cc
@@ -4,6 +4,8 @@
#include "chrome_frame/test/net/test_automation_resource_message_filter.h"
+#include "base/bind.h"
+
TestAutomationResourceMessageFilter::TestAutomationResourceMessageFilter(
AutomationProvider* automation) : automation_(automation) {
}
@@ -32,8 +34,8 @@ bool TestAutomationResourceMessageFilter::OnMessageReceived(
handled = true;
IPC::Message* msg = new IPC::Message(message);
RequestJob& job = it->second;
- job.loop_->PostTask(FROM_HERE, NewRunnableFunction(OnRequestMessage,
- job.job_, msg));
+ job.loop_->PostTask(FROM_HERE,
+ base::Bind(OnRequestMessage, job.job_, msg));
}
} else {
handled = AutomationResourceMessageFilter::OnMessageReceived(message);
« no previous file with comments | « chrome_frame/test/net/fake_external_tab.cc ('k') | chrome_frame/test/test_server_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698