Commit 59039815 authored by khmel's avatar khmel Committed by Commit Bot

arc: Fix debug crash for start_always mode.

Test: Manually
Bug: N/A
Change-Id: Ic178c9b6b6c512c2720c7c638a7903657c418d99
Reviewed-on: https://chromium-review.googlesource.com/792016Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
Reviewed-by: default avatarRyo Hashimoto <hashimoto@chromium.org>
Commit-Queue: Yury Khmel <khmel@google.com>
Cr-Commit-Position: refs/heads/master@{#519572}
parent e55fe23b
...@@ -308,7 +308,7 @@ class ArcSessionManager : public ArcSessionRunner::Observer, ...@@ -308,7 +308,7 @@ class ArcSessionManager : public ArcSessionRunner::Observer,
void OnBackgroundAndroidManagementChecked( void OnBackgroundAndroidManagementChecked(
policy::AndroidManagementClient::Result result); policy::AndroidManagementClient::Result result);
// Requests to starts ARC instance. Also, update the internal state to // Requests to start ARC instance. Also, updates the internal state to
// ACTIVE. // ACTIVE.
void StartArc(); void StartArc();
......
...@@ -1031,8 +1031,10 @@ class SessionManagerClientStubImpl : public SessionManagerClient { ...@@ -1031,8 +1031,10 @@ class SessionManagerClientStubImpl : public SessionManagerClient {
bool enable_vendor_privileged, bool enable_vendor_privileged,
bool native_bridge_experiment, bool native_bridge_experiment,
StartArcInstanceCallback callback) override { StartArcInstanceCallback callback) override {
std::move(callback).Run(StartArcInstanceResult::UNKNOWN_ERROR, base::ThreadTaskRunnerHandle::Get()->PostTask(
std::string(), base::ScopedFD()); FROM_HERE, base::BindOnce(std::move(callback),
StartArcInstanceResult::UNKNOWN_ERROR,
std::string(), base::ScopedFD()));
} }
void SetArcCpuRestriction( void SetArcCpuRestriction(
......
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