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

Unified Diff: components/sessions/core/base_session_service.cc

Issue 2889683003: Rename TaskRunner::RunsTasksOnCurrentThread() in //components (Closed)
Patch Set: rebase Created 3 years, 6 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
« no previous file with comments | « components/safe_browsing_db/v4_store.cc ('k') | components/sync/driver/shared_change_processor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/core/base_session_service.cc
diff --git a/components/sessions/core/base_session_service.cc b/components/sessions/core/base_session_service.cc
index 21726d042bd54aa9f5a117f31982919c6cc9830c..e40809f472ac0dcfbdc1bdcb3aac69471b4badf1 100644
--- a/components/sessions/core/base_session_service.cc
+++ b/components/sessions/core/base_session_service.cc
@@ -34,7 +34,7 @@ void PostOrRunInternalGetCommandsCallback(
base::TaskRunner* task_runner,
const BaseSessionService::GetCommandsCallback& callback,
std::vector<std::unique_ptr<SessionCommand>> commands) {
- if (task_runner->RunsTasksOnCurrentThread()) {
+ if (task_runner->RunsTasksInCurrentSequence()) {
callback.Run(std::move(commands));
} else {
task_runner->PostTask(FROM_HERE,
« no previous file with comments | « components/safe_browsing_db/v4_store.cc ('k') | components/sync/driver/shared_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698