-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for StopApp and make PauseApp use same "close app" logic.
- Make PauseApp, UnpauseApp, IsPaused, PausedApps CrOS-only (they were used in CrOS only). StopApp is already CrOS-only and is seemingly used in both Ash (for SWAs) and Lacros (for PWAs), at least in tests. - Make PauseApp and StopApp use BrowserAppInstanceTracker if available (when CrosApi is enabled) and otherwise just close app windows directly using WebAppUiManager. This makes their behaviour consistent and can be simplified once CrosApi is always enabled. - Fix includes in lacros_web_apps_controller_browsertest.cc per IWYU. - Remove the need for FRIEND_TEST_ALL_PREFIXES by upcasting instead. - Add a few TestFutures when I touched code nearby. Change-Id: I1b95e000abec37ed43d40fef2a224979fdb590bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4780368 Commit-Queue: Glen Robertson <glenrob@chromium.org> Reviewed-by: Maggie Cai <mxcai@chromium.org> Cr-Commit-Position: refs/heads/main@{#1185067}
- Loading branch information
Glen Robertson
authored and
Chromium LUCI CQ
committed
Aug 18, 2023
1 parent
7038c89
commit fcb397f
Showing
10 changed files
with
189 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175 changes: 117 additions & 58 deletions
175
chrome/browser/web_applications/app_service/lacros_web_apps_controller_browsertest.cc
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters