| Index: chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| diff --git a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| index e583a2e16d2023fc4db6e764789c415e1f540f48..29bb455bb716a22cba91709644e252d04a7d1f59 100644
|
| --- a/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| +++ b/chrome/browser/sync_file_system/drive_backend/sync_engine.cc
|
| @@ -119,7 +119,7 @@ class SyncEngine::WorkerObserver : public SyncWorkerInterface::Observer {
|
| }
|
|
|
| void OnPendingFileListUpdated(int item_count) override {
|
| - if (ui_task_runner_->RunsTasksOnCurrentThread()) {
|
| + if (ui_task_runner_->RunsTasksInCurrentSequence()) {
|
| if (sync_engine_)
|
| sync_engine_->OnPendingFileListUpdated(item_count);
|
| return;
|
| @@ -136,7 +136,7 @@ class SyncEngine::WorkerObserver : public SyncWorkerInterface::Observer {
|
| SyncFileStatus file_status,
|
| SyncAction sync_action,
|
| SyncDirection direction) override {
|
| - if (ui_task_runner_->RunsTasksOnCurrentThread()) {
|
| + if (ui_task_runner_->RunsTasksInCurrentSequence()) {
|
| if (sync_engine_)
|
| sync_engine_->OnFileStatusChanged(
|
| url, file_type, file_status, sync_action, direction);
|
| @@ -152,7 +152,7 @@ class SyncEngine::WorkerObserver : public SyncWorkerInterface::Observer {
|
|
|
| void UpdateServiceState(RemoteServiceState state,
|
| const std::string& description) override {
|
| - if (ui_task_runner_->RunsTasksOnCurrentThread()) {
|
| + if (ui_task_runner_->RunsTasksInCurrentSequence()) {
|
| if (sync_engine_)
|
| sync_engine_->UpdateServiceState(state, description);
|
| return;
|
|
|