-
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.
[Office upload] Add IsEligibleAndEnabledUploadOfficeToCloud
Replace most checks for the UploadOfficeToCloud feature with IsEligibleAndEnabledUploadOfficeToCloud. IsEligibleAndEnabledUploadOfficeToCloud returns the result of IsUploadOfficeToCloudEnabled only if the user is non-managed or a Google employee, otherwise false is returned. Checks for the UploadOfficeToCloud feature were left untouched in chrome/browser/ash/file_system_provider/* because they will be removed. Tests: - FileHandlerDialogBrowserTest.* - FixUpFlowBrowserTest.* - CloudUploadDialogTest.* - FileHandlerPageTest.* - OfficeFallbackAppBrowserTest.* were updated to use a non-managed user email address so IsEligibleAndEnabledUploadOfficeToCloud will return true. Tests: - DriveTest.* - OneDriveTest.* - FileManagerFileTaskWithAppServiceTest.OfficePwaHandlerHidden (became NonManagedAccount.OfficePwaHandlerHidden) could not be updated the same way to ensure IsEligibleAndEnabledUploadOfficeToCloud will return true. A fake non- managed user with an account set up in LoggedInUserMixin is needed to ensure both the DriveFS and ODFS file systems could be mounted. Tests: - NonManagedAccount.IsEligibleAndEnabledUploadOfficeToCloud - ManagedAccount.IsEligibleAndEnabledUploadOfficeToCloud - GoogleAccount.IsEligibleAndEnabledUploadOfficeToCloud - NonManagedAccountNoFlag.IsEligibleAndEnabledUploadOfficeToCloud were added to test IsEligibleAndEnabledUploadOfficeToCloud. Bug: b:261353127 Change-Id: Ia1978fc67763f9d88eb4719b35467175e71e5e0a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4230452 Commit-Queue: Cassy Chun-Crogan <cassycc@google.com> Reviewed-by: Kyle Horimoto <khorimoto@chromium.org> Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Reviewed-by: Sam McNally <sammc@chromium.org> Cr-Commit-Position: refs/heads/main@{#1108719}
- Loading branch information
Cassy Chun-Crogan
authored and
Chromium LUCI CQ
committed
Feb 23, 2023
1 parent
871ff77
commit 5b6d90f
Showing
15 changed files
with
301 additions
and
70 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
Oops, something went wrong.