Commit f592cd17 authored by Yusuke Sato's avatar Yusuke Sato Committed by Commit Bot

arc: Pass CHROMEOS_USER variable to the arcvm job

This allows the job to use userdata.qcow in the user's /home.

BUG=b:118408409
TEST=sign in, confirm the job is running

Change-Id: I1bcb5ff1cfcae06a7ce404b17ffd2c329419736e
Reviewed-on: https://chromium-review.googlesource.com/c/1367085Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
Commit-Queue: Yusuke Sato <yusukes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#615436}
parent fb53f312
......@@ -59,7 +59,10 @@ class ArcVmClientAdapter : public ArcClientAdapter {
DCHECK(upstart_client);
upstart_client->StartJob(
kArcVmUpstartJob,
{}, // TODO(yusukes): Pass the content of the |request| to the job.
// arc_session_impl.cc fills the |account_id| field, and it is always
// guaranteed that the ID is not for Incognito mode and is a valid one.
// TODO(yusukes): Pass other fields of the |request| to the job.
{"CHROMEOS_USER=" + request.account_id()},
base::BindOnce(&ArcVmClientAdapter::OnArcInstanceUpgraded,
weak_factory_.GetWeakPtr(), std::move(success_callback),
std::move(error_callback)));
......
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