0

[Office fallback] Mojo-bind fallback page handler independently from ODFS installed

Bug: b:324579786, b:325980155
Change-Id: Id1a69289a02cb9e4f405f65d21f8614a7d2b4b4b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5312255
Reviewed-by: Dominick Ng <dominickn@chromium.org>
Auto-Submit: Jeremie Boulic <jboulic@chromium.org>
Commit-Queue: Dominick Ng <dominickn@chromium.org>
Reviewed-by: Alexander Bolodurin <alexbn@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1263682}
This commit is contained in:
Jérémie Boulic
2024-02-22 00:17:00 +00:00
committed by Chromium LUCI CQ
parent 285d1a424d
commit 7c20a0581c
2 changed files with 3 additions and 6 deletions

@@ -1319,9 +1319,6 @@ class DriveTest : public TestAccountBrowserTest {
// the office fallback dialog can launched.
test::AddDefaultComponentExtensionsOnMainThread(profile());
// Create a fake ODFS.
test::CreateFakeProvidedFileSystemOneDrive(profile());
// Create Drive root directory.
{
base::ScopedAllowBlockingForTesting allow_blocking;

@@ -1654,14 +1654,14 @@ void PopulateChromeWebUIFrameBinders(
RegisterWebUIControllerInterfaceBinder<
ash::cloud_upload::mojom::PageHandlerFactory,
ash::cloud_upload::CloudUploadUI>(map);
RegisterWebUIControllerInterfaceBinder<
ash::office_fallback::mojom::PageHandlerFactory,
ash::office_fallback::OfficeFallbackUI>(map);
}
if (ash::cloud_upload::
IsMicrosoftOfficeOneDriveIntegrationAllowedAndOdfsInstalled(
profile)) {
RegisterWebUIControllerInterfaceBinder<
ash::office_fallback::mojom::PageHandlerFactory,
ash::office_fallback::OfficeFallbackUI>(map);
RegisterWebUIControllerInterfaceBinder<
ash::settings::one_drive::mojom::PageHandlerFactory,
ash::settings::OSSettingsUI>(map);