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

Issue 642343004: [ew] Simplify the entry watcher logic. (Closed)

Created:
6 years, 2 months ago by mtomasz
Modified:
6 years, 1 month ago
Reviewers:
benwells, sky, tzik
CC:
chromium-reviews, extensions-reviews_chromium.org, tzik, jam, nhiroki, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, kinuko+fileapi
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[ew] Simplify the entry watcher logic. The responsibility of EntryWatcherService has been moved to WatcherManager implementations. Note, that the original code was unnecesarily complicated. After replacing the observer interface with a simple callback, there is no need for an extra service managing watchers anymore. This was possible because with the new design entry watchers will no longer survive reboots. TEST=Compiles. BUG=261491 Committed: https://crrev.com/b524db20a4704fb8e3047680d090c25d7a0a52c7 Cr-Commit-Position: refs/heads/master@{#301319}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased. #

Total comments: 1

Patch Set 3 : NULL -> nullptr #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -848 lines) Patch
D chrome/browser/extensions/api/file_system/entry_watcher_service.h View 1 1 chunk +0 lines, -128 lines 0 comments Download
D chrome/browser/extensions/api/file_system/entry_watcher_service.cc View 1 chunk +0 lines, -253 lines 0 comments Download
D chrome/browser/extensions/api/file_system/entry_watcher_service_factory.h View 1 1 chunk +0 lines, -49 lines 0 comments Download
D chrome/browser/extensions/api/file_system/entry_watcher_service_factory.cc View 1 chunk +0 lines, -37 lines 0 comments Download
D chrome/browser/extensions/api/file_system/entry_watcher_service_unittest.cc View 1 chunk +0 lines, -254 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/test_file_system_backend.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/public/test/test_file_system_backend.cc View 1 2 6 chunks +3 lines, -100 lines 0 comments Download
M storage/browser/fileapi/watcher_manager.h View 1 chunk +10 lines, -21 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
mtomasz
@benwells: PTAL. Thanks.
6 years, 2 months ago (2014-10-22 04:11:51 UTC) #2
benwells
On 2014/10/22 04:11:51, mtomasz wrote: > @benwells: PTAL. Thanks. Apologies, the API review for this ...
6 years, 2 months ago (2014-10-22 23:09:30 UTC) #3
mtomasz
On 2014/10/22 23:09:30, benwells wrote: > On 2014/10/22 04:11:51, mtomasz wrote: > > @benwells: PTAL. ...
6 years, 2 months ago (2014-10-23 01:09:56 UTC) #4
benwells
On 2014/10/23 01:09:56, mtomasz wrote: > On 2014/10/22 23:09:30, benwells wrote: > > On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 01:51:10 UTC) #5
mtomasz
On 2014/10/23 01:51:10, benwells wrote: > On 2014/10/23 01:09:56, mtomasz wrote: > > On 2014/10/22 ...
6 years, 2 months ago (2014-10-23 01:51:55 UTC) #6
benwells
Overall lg, just trying to figure out what the status of this all is. https://codereview.chromium.org/642343004/diff/1/storage/browser/fileapi/watcher_manager.h ...
6 years, 2 months ago (2014-10-23 02:10:34 UTC) #7
mtomasz
https://codereview.chromium.org/642343004/diff/1/storage/browser/fileapi/watcher_manager.h File storage/browser/fileapi/watcher_manager.h (right): https://codereview.chromium.org/642343004/diff/1/storage/browser/fileapi/watcher_manager.h#newcode43 storage/browser/fileapi/watcher_manager.h:43: virtual void WatchDirectory( On 2014/10/23 02:10:34, benwells wrote: > ...
6 years, 2 months ago (2014-10-23 02:15:12 UTC) #8
benwells
lgtm
6 years, 2 months ago (2014-10-23 02:21:51 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642343004/1
6 years, 2 months ago (2014-10-23 02:23:24 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/82714) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/72360) win_gpu ...
6 years, 2 months ago (2014-10-23 02:28:25 UTC) #13
mtomasz
@sky: PTAL at content/public/test/test_file_system_backend.*. Thanks.
6 years, 2 months ago (2014-10-23 09:20:52 UTC) #15
sky
LGTM https://codereview.chromium.org/642343004/diff/20001/content/public/test/test_file_system_backend.cc File content/public/test/test_file_system_backend.cc (right): https://codereview.chromium.org/642343004/diff/20001/content/public/test/test_file_system_backend.cc#newcode152 content/public/test/test_file_system_backend.cc:152: return NULL; nullptr
6 years, 2 months ago (2014-10-23 17:03:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642343004/40001
6 years, 2 months ago (2014-10-24 07:21:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/19786)
6 years, 2 months ago (2014-10-24 07:26:29 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642343004/40001
6 years, 2 months ago (2014-10-24 08:23:50 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/19792)
6 years, 2 months ago (2014-10-24 08:28:19 UTC) #24
mtomasz
@tzik: PTAL at storage/browser/fileapi/watcher_manager.h. Thanks.
6 years, 1 month ago (2014-10-27 00:24:47 UTC) #26
tzik
lgtm
6 years, 1 month ago (2014-10-27 06:03:08 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/642343004/40001
6 years, 1 month ago (2014-10-27 06:07:06 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:40001)
6 years, 1 month ago (2014-10-27 06:42:20 UTC) #30
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 06:42:59 UTC) #31
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/b524db20a4704fb8e3047680d090c25d7a0a52c7
Cr-Commit-Position: refs/heads/master@{#301319}

Powered by Google App Engine
This is Rietveld 408576698