Commit 709aed67 authored by Sorin Jianu's avatar Sorin Jianu Committed by Commit Bot

Adds an appguid argument for the recovery component action run.

The code now provides as a run action command line argument the Chrome
app guid registered with Omaha, as returned by the configurator, like this:

--appguid={8A69D345-D564-463c-AFF1-A69D9E530F96}

Bug: 687231
Change-Id: I22125e434ffbd4e98de9c3373dcb54ac7f98799a
Reviewed-on: https://chromium-review.googlesource.com/1100088Reviewed-by: default avatarJoshua Pawlicki <waffles@chromium.org>
Commit-Queue: Sorin Jianu <sorin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567051}
parent be01902c
...@@ -56,6 +56,10 @@ base::CommandLine ActionRunner::MakeCommandLine( ...@@ -56,6 +56,10 @@ base::CommandLine ActionRunner::MakeCommandLine(
command_line.AppendSwitchASCII( command_line.AppendSwitchASCII(
"browser-version", component_.config()->GetBrowserVersion().GetString()); "browser-version", component_.config()->GetBrowserVersion().GetString());
command_line.AppendSwitchASCII("sessionid", component_.session_id()); command_line.AppendSwitchASCII("sessionid", component_.session_id());
const auto app_guid = component_.config()->GetAppGuid();
if (!app_guid.empty())
command_line.AppendSwitchASCII("appguid", app_guid);
VLOG(1) << "run action: " << command_line.GetCommandLineString();
return command_line; return command_line;
} }
......
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