Remove lock screen apps parameter from ActionData
Bug: 376354347 Change-Id: I16b262b3b7d50528ea89e3fcba1f345df7ca0053 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6013766 Reviewed-by: Toni Barzic <tbarzic@google.com> Commit-Queue: Mitsuru Oshima <oshima@chromium.org> Cr-Commit-Position: refs/heads/main@{#1381611}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
af6243dd59
commit
0f7c941cba
@ -448,12 +448,6 @@ void LaunchPlatformAppWithFilePaths(
|
|||||||
void LaunchPlatformAppWithAction(content::BrowserContext* context,
|
void LaunchPlatformAppWithAction(content::BrowserContext* context,
|
||||||
const extensions::Extension* app,
|
const extensions::Extension* app,
|
||||||
app_runtime::ActionData action_data) {
|
app_runtime::ActionData action_data) {
|
||||||
CHECK(!action_data.is_lock_screen_action ||
|
|
||||||
!*action_data.is_lock_screen_action ||
|
|
||||||
app->permissions_data()->HasAPIPermission(
|
|
||||||
extensions::mojom::APIPermissionID::kLockScreen))
|
|
||||||
<< "Launching lock screen action handler requires lockScreen permission.";
|
|
||||||
|
|
||||||
scoped_refptr<PlatformAppPathLauncher> launcher =
|
scoped_refptr<PlatformAppPathLauncher> launcher =
|
||||||
new PlatformAppPathLauncher(context, app, base::FilePath());
|
new PlatformAppPathLauncher(context, app, base::FilePath());
|
||||||
launcher->set_action_data(std::move(action_data));
|
launcher->set_action_data(std::move(action_data));
|
||||||
|
@ -63,23 +63,6 @@ namespace app.runtime {
|
|||||||
// Optional data that includes action-specific launch information.
|
// Optional data that includes action-specific launch information.
|
||||||
dictionary ActionData {
|
dictionary ActionData {
|
||||||
ActionType actionType;
|
ActionType actionType;
|
||||||
|
|
||||||
// <p>Whether the action was requested on Chrome OS lock screen.</p>
|
|
||||||
// <p>
|
|
||||||
// Launch events with this valued set to <code>true</code> are fired
|
|
||||||
// in lock screen context, where apps have reduced access to extension
|
|
||||||
// APIs, but are able to create windows on lock screen.
|
|
||||||
// </p>
|
|
||||||
// <p>
|
|
||||||
// Note that this value will be set to <code>true</code> only if the app
|
|
||||||
// is set as the lock screen enabled action handler by the user.
|
|
||||||
// </p>
|
|
||||||
[nodoc] boolean? isLockScreenAction;
|
|
||||||
|
|
||||||
// Currently, used only with lock screen actions. If set, indicates whether
|
|
||||||
// the app should attempt to restore state from when the action was last
|
|
||||||
// handled.
|
|
||||||
[nodoc] boolean? restoreLastActionState;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Optional data for the launch. Either <code>items</code>, or
|
// Optional data for the launch. Either <code>items</code>, or
|
||||||
|
Reference in New Issue
Block a user