-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge to M109: [Files app] Fix dependency chain breaking Files on Kio…
…sk mode Importing metadata_model.js from drive_sync_handler.js was breaking Files app when running on Kiosk mode (see bug for more information). Since the import was just used for typing, converting it to an extern and replacing the import fixes the issue in a safe way that can be backported to M108+. (cherry picked from commit d1b6eb9) Bug: b/260192017 Test: Manual Change-Id: I92e13117114bec4aaffdc39baf384c9270680357 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4105141 Reviewed-by: Luciano Pacheco <lucmult@chromium.org> Commit-Queue: Marcello Salomao <msalomao@google.com> Cr-Original-Commit-Position: refs/heads/main@{#1082926} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4127742 Reviewed-by: Peter Marshall <petermarshall@chromium.org> Cr-Commit-Position: refs/branch-heads/5414@{#1401} Cr-Branched-From: 4417ee5-refs/heads/main@{#1070088}
- Loading branch information
Marcello Salomao
authored and
Chromium LUCI CQ
committed
Jan 18, 2023
1 parent
3534c52
commit d1f44c2
Showing
5 changed files
with
39 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2022 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
import {MetadataItem} from '../foreground/js/metadata/metadata_item.js'; | ||
|
||
export class MetadataModelInterface { | ||
/** | ||
* Obtains metadata for entries. | ||
* @param {!Array<!Entry>} entries Entries. | ||
* @param {!Array<string>} names Metadata property names to be obtained. | ||
* @return {!Promise<!Array<!MetadataItem>>} | ||
*/ | ||
get(entries, names) {} | ||
|
||
/** | ||
* Obtains metadata cache for entries. | ||
* @param {!Array<!Entry>} entries Entries. | ||
* @param {!Array<string>} names Metadata property names to be obtained. | ||
* @return {!Array<!MetadataItem>} | ||
*/ | ||
getCache(entries, names) {} | ||
|
||
/** | ||
* Invalidates metadata for updated entries. | ||
* @param {!Array<!Entry>} entries | ||
*/ | ||
notifyEntriesChanged(entries) {} | ||
} |
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