Commit b28d7f67 authored by Ryo Hashimoto's avatar Ryo Hashimoto Committed by Commit Bot

arc: Run the callback on the same thread

WeakPtr must be dereferenced on the same thread/sequence.

BUG=1003950

Change-Id: Ic6f69b3974ea3bca0f3af1ca0bb3cc051c7156fd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821497Reviewed-by: default avatarYusuke Sato <yusukes@chromium.org>
Commit-Queue: Ryo Hashimoto <hashimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699580}
parent eb3cdcd1
......@@ -14,7 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "base/optional.h"
#include "base/strings/stringprintf.h"
#include "base/task/post_task.h"
#include "base/threading/sequenced_task_runner_handle.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/login_manager/arc.pb.h"
#include "chromeos/dbus/upstart/upstart_client.h"
......@@ -45,7 +45,8 @@ class ArcVmClientAdapter : public ArcClientAdapter {
StartArcMiniContainerRequest_PlayStoreAutoUpdate_AUTO_UPDATE_OFF) {
play_store_auto_update_ = false;
}
base::PostTask(FROM_HERE, base::BindOnce(std::move(callback), true));
base::SequencedTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::BindOnce(std::move(callback), true));
}
void UpgradeArc(const UpgradeArcContainerRequest& request,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment