Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Issue 2718303002: mediaview: Change the contract of watcher callbacks. (Closed)

Created:
3 years, 9 months ago by Shuhei Takahashi
Modified:
3 years, 9 months ago
Reviewers:
hidehiko, dcheng
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, viettrungluu+watch_chromium.org, hidehiko+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, lhchavez+watch_chromium.org, darin (slow to review), qsr+mojo_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mediaview: 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M components/arc/common/file_system.mojom View 1 5 chunks +9 lines, -10 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (11 generated)
Shuhei Takahashi
hidehiko: PTAL dcheng: PTAL for security review
3 years, 9 months ago (2017-02-28 04:53:56 UTC) #6
dcheng
LGTM
3 years, 9 months ago (2017-02-28 07:27:59 UTC) #9
hidehiko
LGTM. Sorry for delay. https://codereview.chromium.org/2718303002/diff/1/components/arc/common/file_system.mojom File components/arc/common/file_system.mojom (right): https://codereview.chromium.org/2718303002/diff/1/components/arc/common/file_system.mojom#newcode83 components/arc/common/file_system.mojom:83: // case, different watcher IDs ...
3 years, 9 months ago (2017-03-02 14:20:28 UTC) #10
Shuhei Takahashi
Thanks for reviewing! https://codereview.chromium.org/2718303002/diff/1/components/arc/common/file_system.mojom File components/arc/common/file_system.mojom (right): https://codereview.chromium.org/2718303002/diff/1/components/arc/common/file_system.mojom#newcode83 components/arc/common/file_system.mojom:83: // case, different watcher IDs are ...
3 years, 9 months ago (2017-03-02 16:13:16 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2718303002/20001
3 years, 9 months ago (2017-03-02 16:13:53 UTC) #14
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 16:50:10 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6cbbd4f60f2285cf33ed2a47658a...

Powered by Google App Engine
This is Rietveld 408576698