summaryrefslogtreecommitdiff
path: root/chromium/tools/gn/scheduler.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2016-08-01 12:59:39 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2016-08-04 12:40:43 +0000
commit28b1110370900897ab652cb420c371fab8857ad4 (patch)
tree41b32127d23b0df4f2add2a27e12dc87bddb260e /chromium/tools/gn/scheduler.cc
parent399c965b6064c440ddcf4015f5f8e9d131c7a0a6 (diff)
downloadqtwebengine-chromium-28b1110370900897ab652cb420c371fab8857ad4.tar.gz
BASELINE: Update Chromium to 53.0.2785.41
Also adds a few extra files for extensions. Change-Id: Iccdd55d98660903331cf8b7b29188da781830af4 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/tools/gn/scheduler.cc')
-rw-r--r--chromium/tools/gn/scheduler.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/chromium/tools/gn/scheduler.cc b/chromium/tools/gn/scheduler.cc
index b2e2a006b96..b5f3dd07a27 100644
--- a/chromium/tools/gn/scheduler.cc
+++ b/chromium/tools/gn/scheduler.cc
@@ -8,6 +8,7 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "build/build_config.h"
#include "tools/gn/standard_out.h"
@@ -101,9 +102,9 @@ void Scheduler::Log(const std::string& verb, const std::string& msg) {
} else {
// The run loop always joins on the sub threads, so the lifetime of this
// object outlives the invocations of this function, hence "unretained".
- main_loop_.PostTask(FROM_HERE,
- base::Bind(&Scheduler::LogOnMainThread,
- base::Unretained(this), verb, msg));
+ main_loop_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&Scheduler::LogOnMainThread,
+ base::Unretained(this), verb, msg));
}
}
@@ -122,9 +123,9 @@ void Scheduler::FailWithError(const Err& err) {
} else {
// The run loop always joins on the sub threads, so the lifetime of this
// object outlives the invocations of this function, hence "unretained".
- main_loop_.PostTask(FROM_HERE,
- base::Bind(&Scheduler::FailWithErrorOnMainThread,
- base::Unretained(this), err));
+ main_loop_.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&Scheduler::FailWithErrorOnMainThread,
+ base::Unretained(this), err));
}
}
@@ -210,9 +211,9 @@ void Scheduler::DecrementWorkCount() {
if (base::MessageLoop::current() == &main_loop_) {
OnComplete();
} else {
- main_loop_.PostTask(FROM_HERE,
- base::Bind(&Scheduler::OnComplete,
- base::Unretained(this)));
+ main_loop_.task_runner()->PostTask(
+ FROM_HERE,
+ base::Bind(&Scheduler::OnComplete, base::Unretained(this)));
}
}
}