Chromium Code Reviews
Descriptionmediaview: Change the contract of watcher callbacks.
In initial contract, watchers could be automatically uninstalled without
explicit RemoveWatcher() calls if watched directories are deleted.
However it does not align with the contract of storage::WatcherManager
(the primary user of watchers) which leaves watchers even after watched
directories are removed. Using different contracts may make it slightly
difficult to understand, so this patch will update the Mojo IPC contract
to align with WatcherManager's.
Usually we should not update the contract of existing Mojo IPC methods,
but it is okay in this case because we have not implemented those
methods in both Chrome and Android yet. One exception is
https://codereview.chromium.org/2709613006/ which implemented a fake of
FileSystemInstance, but it (unexpectedly) follows the new contract, so
we do not need to make changes to it.
BUG=chromium:684233
TEST=trybot
Review-Url: https://codereview.chromium.org/2718303002
Cr-Commit-Position: refs/heads/master@{#454285}
Committed: https://chromium.googlesource.com/chromium/src/+/6cbbd4f60f2285cf33ed2a47658ab3e3e7380eaa
Patch Set 1 : Review ready. #
Total comments: 2
Patch Set 2 : Added a comment about watcher persistence. #
Dependent Patchsets: Messages
Total messages: 17 (11 generated)
|
|||||||||||||||||||