summaryrefslogtreecommitdiffstats
path: root/chrome_frame/crash_reporting
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 17:10:58 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-12 17:10:58 +0000
commit8075105cb6bc684ebfe613edd6a9a27384c80d7e (patch)
tree86386ce875a2fd3e08db4fd4cd9f6e9b09c096cb /chrome_frame/crash_reporting
parent82f4b8292a2bf50213b9ae86399303f907e930e0 (diff)
downloadchromium_src-8075105cb6bc684ebfe613edd6a9a27384c80d7e.zip
chromium_src-8075105cb6bc684ebfe613edd6a9a27384c80d7e.tar.gz
chromium_src-8075105cb6bc684ebfe613edd6a9a27384c80d7e.tar.bz2
base::Bind: Low-hanging fruit conversions of NewRunnableFunction.
BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8536037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109803 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/crash_reporting')
-rw-r--r--chrome_frame/crash_reporting/nt_loader_unittest.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome_frame/crash_reporting/nt_loader_unittest.cc b/chrome_frame/crash_reporting/nt_loader_unittest.cc
index 4f75d74..3bc27bf 100644
--- a/chrome_frame/crash_reporting/nt_loader_unittest.cc
+++ b/chrome_frame/crash_reporting/nt_loader_unittest.cc
@@ -8,6 +8,8 @@
#include <winnt.h>
#include "base/at_exit.h"
+#include "base/bind.h"
+#include "base/bind_helpers.h"
#include "base/environment.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
@@ -81,11 +83,11 @@ TEST(NtLoader, OwnsCriticalSection) {
base::Thread other("Other threads");
ASSERT_TRUE(other.Start());
other.message_loop()->PostTask(
- FROM_HERE, NewRunnableFunction(::EnterCriticalSection, &cs));
+ FROM_HERE, base::Bind(::EnterCriticalSection, &cs));
base::win::ScopedHandle event(::CreateEvent(NULL, FALSE, FALSE, NULL));
other.message_loop()->PostTask(
- FROM_HERE, NewRunnableFunction(::SetEvent, event.Get()));
+ FROM_HERE, base::IgnoreReturn<BOOL>(base::Bind(::SetEvent, event.Get())));
ASSERT_EQ(WAIT_OBJECT_0, ::WaitForSingleObject(event.Get(), INFINITE));
@@ -96,7 +98,7 @@ TEST(NtLoader, OwnsCriticalSection) {
// Make the other thread release it.
other.message_loop()->PostTask(
- FROM_HERE, NewRunnableFunction(::LeaveCriticalSection, &cs));
+ FROM_HERE, base::Bind(::LeaveCriticalSection, &cs));
other.Stop();