Skip to content

Commit

Permalink
base::Bind fixes
Browse files Browse the repository at this point in the history
TBR=mmenke@chromium.org
BUG=none
TEST=none

Review URL: http://codereview.chromium.org/8949065

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115730 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
groby@chromium.org committed Dec 23, 2011
1 parent 315e7c8 commit 3d9eff0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions net/ocsp/nss_ocsp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <string>

#include "base/basictypes.h"
#include "base/callback.h"
#include "base/compiler_specific.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
Expand Down Expand Up @@ -59,7 +60,8 @@ class OCSPIOLoop {
}

// Called from worker thread.
void PostTaskToIOLoop(const tracked_objects::Location& from_here, Task* task);
void PostTaskToIOLoop(const tracked_objects::Location& from_here,
const base::Closure& task);

void EnsureIOLoop();

Expand Down Expand Up @@ -179,7 +181,7 @@ class OCSPRequestSession
DCHECK(!io_loop_);
g_ocsp_io_loop.Get().PostTaskToIOLoop(
FROM_HERE,
NewRunnableMethod(this, &OCSPRequestSession::StartURLRequest));
base::Bind(&OCSPRequestSession::StartURLRequest, this));
}

bool Started() const {
Expand Down Expand Up @@ -340,7 +342,7 @@ class OCSPRequestSession
if (io_loop_) {
io_loop_->PostTask(
FROM_HERE,
NewRunnableMethod(this, &OCSPRequestSession::CancelURLRequest));
base::Bind(&OCSPRequestSession::CancelURLRequest, this));
}
}

Expand Down Expand Up @@ -493,7 +495,7 @@ void OCSPIOLoop::Shutdown() {
}

void OCSPIOLoop::PostTaskToIOLoop(
const tracked_objects::Location& from_here, Task* task) {
const tracked_objects::Location& from_here, const base::Closure& task) {
base::AutoLock autolock(lock_);
if (io_loop_)
io_loop_->PostTask(from_here, task);
Expand Down

0 comments on commit 3d9eff0

Please sign in to comment.