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

Unified Diff: net/dns/serial_worker.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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
-

Powered by Google App Engine
This is Rietveld 408576698