| Index: net/dns/serial_worker.cc
|
| diff --git a/net/dns/serial_worker.cc b/net/dns/serial_worker.cc
|
| index 4da7df98ba2d878b4f694a5fca60c0a46d5d0313..a49eaec397d49668b033c9a57719e5a679ad3ddf 100644
|
| --- a/net/dns/serial_worker.cc
|
| +++ b/net/dns/serial_worker.cc
|
| @@ -12,17 +12,18 @@
|
| namespace net {
|
|
|
| SerialWorker::SerialWorker()
|
| - : message_loop_(base::MessageLoopProxy::current()),
|
| - state_(IDLE) {}
|
| + : message_loop_(base::MessageLoopProxy::current()), state_(IDLE) {
|
| +}
|
|
|
| -SerialWorker::~SerialWorker() {}
|
| +SerialWorker::~SerialWorker() {
|
| +}
|
|
|
| void SerialWorker::WorkNow() {
|
| DCHECK(message_loop_->BelongsToCurrentThread());
|
| switch (state_) {
|
| case IDLE:
|
| - if (!base::WorkerPool::PostTask(FROM_HERE, base::Bind(
|
| - &SerialWorker::DoWorkJob, this), false)) {
|
| + if (!base::WorkerPool::PostTask(
|
| + FROM_HERE, base::Bind(&SerialWorker::DoWorkJob, this), false)) {
|
| #if defined(OS_POSIX)
|
| // See worker_pool_posix.cc.
|
| NOTREACHED() << "WorkerPool::PostTask is not expected to fail on posix";
|
| @@ -60,8 +61,8 @@ void SerialWorker::Cancel() {
|
| void SerialWorker::DoWorkJob() {
|
| this->DoWork();
|
| // If this fails, the loop is gone, so there is no point retrying.
|
| - message_loop_->PostTask(FROM_HERE, base::Bind(
|
| - &SerialWorker::OnWorkJobFinished, this));
|
| + message_loop_->PostTask(FROM_HERE,
|
| + base::Bind(&SerialWorker::OnWorkJobFinished, this));
|
| }
|
|
|
| void SerialWorker::OnWorkJobFinished() {
|
| @@ -97,4 +98,3 @@ void SerialWorker::RetryWork() {
|
| }
|
|
|
| } // namespace net
|
| -
|
|
|