Index: content/browser/browser_thread_impl.cc |
diff --git a/content/browser/browser_thread_impl.cc b/content/browser/browser_thread_impl.cc |
index fa8e491119cfffc89f5c801bf776a599bfc757a7..205340ed3016e71b684936918a4801ea8e3f5d3b 100644 |
--- a/content/browser/browser_thread_impl.cc |
+++ b/content/browser/browser_thread_impl.cc |
@@ -133,7 +133,7 @@ struct BrowserThreadGlobals { |
// This array is filled either as the underlying threads start and invoke |
// Init() or in RedirectThreadIDToTaskRunner() for threads that are being |
// redirected. It is not emptied during shutdown in order to support |
- // RunsTasksOnCurrentThread() until the very end. |
+ // RunsTasksInCurrentSequence() until the very end. |
scoped_refptr<base::SingleThreadTaskRunner> |
task_runners[BrowserThread::ID_COUNT]; |
@@ -208,7 +208,7 @@ void BrowserThreadImpl::Init() { |
// instead of BrowserThreadImpl::Start.*(). |
DCHECK_EQ(globals.states[identifier_], BrowserThreadState::RUNNING); |
DCHECK(globals.task_runners[identifier_]); |
- DCHECK(globals.task_runners[identifier_]->RunsTasksOnCurrentThread()); |
+ DCHECK(globals.task_runners[identifier_]->RunsTasksInCurrentSequence()); |
} |
#endif // DCHECK_IS_ON() |
@@ -574,7 +574,7 @@ bool BrowserThread::CurrentlyOn(ID identifier) { |
DCHECK_GE(identifier, 0); |
DCHECK_LT(identifier, ID_COUNT); |
return globals.task_runners[identifier] && |
- globals.task_runners[identifier]->RunsTasksOnCurrentThread(); |
+ globals.task_runners[identifier]->RunsTasksInCurrentSequence(); |
} |
// static |
@@ -661,7 +661,7 @@ bool BrowserThread::GetCurrentThreadIdentifier(ID* identifier) { |
base::AutoLock lock(globals.lock); |
for (int i = 0; i < ID_COUNT; ++i) { |
if (globals.task_runners[i] && |
- globals.task_runners[i]->RunsTasksOnCurrentThread()) { |
+ globals.task_runners[i]->RunsTasksInCurrentSequence()) { |
*identifier = static_cast<ID>(i); |
return true; |
} |