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

Issue 490643005: Files.app: Start to use DeviceEventRouter. (Closed)

Created:
6 years, 4 months ago by hirono
Modified:
6 years, 3 months ago
Reviewers:
mtomasz, benwells
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Files.app: Start to use DeviceEventRouter. The new class manages device states and dispatch device events property instead of EventRouter, MountedDiskMonitor, and JavaScript side's DeviceHandler. BUG=360946, 396258 Committed: https://crrev.com/0f3d08364420d5b3c6eaa4100799459277758f52 Cr-Commit-Position: refs/heads/master@{#291891}

Patch Set 1 : #

Patch Set 2 : . #

Total comments: 9

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : Fixed. #

Patch Set 5 : Fixed. #

Total comments: 2

Patch Set 6 : Add a test for the case where shouldNotify = false. #

Patch Set 7 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -331 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/device_event_router.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/device_event_router.cc View 1 3 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/device_event_router_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/event_router.h View 1 5 chunks +4 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/event_router.cc View 1 2 3 14 chunks +69 lines, -80 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_observer.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_unittest.cc View 4 chunks +1 line, -81 lines 0 comments Download
M chrome/common/extensions/api/file_browser_private.idl View 1 2 chunks +6 lines, -11 lines 0 comments Download
M chrome/test/data/file_manager/unit_tests/device_handler_unittest.js View 1 2 3 4 5 6 12 chunks +84 lines, -64 lines 0 comments Download
M ui/file_manager/file_manager/background/js/device_handler.js View 1 2 3 4 5 6 11 chunks +19 lines, -68 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
hirono
PTAL the CL? Thank you!
6 years, 4 months ago (2014-08-25 04:17:03 UTC) #1
mtomasz
https://codereview.chromium.org/490643005/diff/60001/chrome/browser/chromeos/extensions/file_manager/event_router.cc File chrome/browser/chromeos/extensions/file_manager/event_router.cc (right): https://codereview.chromium.org/490643005/diff/60001/chrome/browser/chromeos/extensions/file_manager/event_router.cc#newcode328 chrome/browser/chromeos/extensions/file_manager/event_router.cc:328: : DeviceEventRouter(base::TimeDelta::FromSeconds(0)), profile_(profile) {} Shall 0 be passed here? ...
6 years, 4 months ago (2014-08-25 04:37:37 UTC) #2
hirono
https://codereview.chromium.org/490643005/diff/60001/chrome/browser/chromeos/extensions/file_manager/event_router.cc File chrome/browser/chromeos/extensions/file_manager/event_router.cc (right): https://codereview.chromium.org/490643005/diff/60001/chrome/browser/chromeos/extensions/file_manager/event_router.cc#newcode328 chrome/browser/chromeos/extensions/file_manager/event_router.cc:328: : DeviceEventRouter(base::TimeDelta::FromSeconds(0)), profile_(profile) {} On 2014/08/25 04:37:37, mtomasz wrote: ...
6 years, 4 months ago (2014-08-25 06:40:58 UTC) #3
mtomasz
lgtm with nits https://codereview.chromium.org/490643005/diff/60001/chrome/browser/chromeos/extensions/file_manager/event_router.cc File chrome/browser/chromeos/extensions/file_manager/event_router.cc (right): https://codereview.chromium.org/490643005/diff/60001/chrome/browser/chromeos/extensions/file_manager/event_router.cc#newcode441 chrome/browser/chromeos/extensions/file_manager/event_router.cc:441: volume_manager->AddObserver(this); On 2014/08/25 06:40:57, hirono wrote: ...
6 years, 4 months ago (2014-08-25 07:48:23 UTC) #4
hirono
Patchset #4 (id:100001) has been deleted
6 years, 4 months ago (2014-08-26 01:06:22 UTC) #5
hirono
Thanks! https://codereview.chromium.org/490643005/diff/80001/chrome/browser/chromeos/extensions/file_manager/event_router.cc File chrome/browser/chromeos/extensions/file_manager/event_router.cc (right): https://codereview.chromium.org/490643005/diff/80001/chrome/browser/chromeos/extensions/file_manager/event_router.cc#newcode332 chrome/browser/chromeos/extensions/file_manager/event_router.cc:332: file_browser_private::DeviceEvent event; On 2014/08/25 07:48:23, mtomasz wrote: > ...
6 years, 4 months ago (2014-08-26 01:06:45 UTC) #6
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 4 months ago (2014-08-26 01:06:49 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/490643005/120001
6 years, 4 months ago (2014-08-26 01:09:12 UTC) #8
hirono
The CQ bit was unchecked by hirono@chromium.org
6 years, 4 months ago (2014-08-26 01:23:02 UTC) #9
hirono
@mtomasz - I fixed one condition in DeviceHandler, and tests for the class. Please take ...
6 years, 4 months ago (2014-08-26 02:31:03 UTC) #10
mtomasz
https://codereview.chromium.org/490643005/diff/140001/chrome/test/data/file_manager/unit_tests/device_handler_unittest.js File chrome/test/data/file_manager/unit_tests/device_handler_unittest.js (right): https://codereview.chromium.org/490643005/diff/140001/chrome/test/data/file_manager/unit_tests/device_handler_unittest.js#newcode354 chrome/test/data/file_manager/unit_tests/device_handler_unittest.js:354: shouldNotify: true nit: Do we have any unit test ...
6 years, 4 months ago (2014-08-26 02:49:43 UTC) #11
hirono
I added the test, and remove startup notification blocking in JavaScript code. https://codereview.chromium.org/490643005/diff/140001/chrome/test/data/file_manager/unit_tests/device_handler_unittest.js File chrome/test/data/file_manager/unit_tests/device_handler_unittest.js ...
6 years, 4 months ago (2014-08-26 03:48:27 UTC) #12
mtomasz
lgtm!
6 years, 4 months ago (2014-08-26 03:52:46 UTC) #13
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 4 months ago (2014-08-26 03:53:10 UTC) #14
hirono
On 2014/08/26 03:52:46, mtomasz wrote: > lgtm! Thank you!
6 years, 4 months ago (2014-08-26 03:53:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/490643005/160001
6 years, 4 months ago (2014-08-26 03:54:35 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-26 04:13:33 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 04:15:38 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/46189) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/8927) ios_rel_device ...
6 years, 4 months ago (2014-08-26 04:15:39 UTC) #19
hirono
hirono@chromium.org changed reviewers: + benwells@chromium.org
6 years, 4 months ago (2014-08-26 04:21:02 UTC) #20
hirono
@benwells - PTAL file_browser_private.idl? Thank you!
6 years, 4 months ago (2014-08-26 04:21:02 UTC) #21
benwells
lgtm
6 years, 4 months ago (2014-08-26 07:25:11 UTC) #22
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 4 months ago (2014-08-26 07:50:37 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/490643005/180001
6 years, 4 months ago (2014-08-26 07:51:42 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel_swarming on tryserver.chromium.win ...
6 years, 4 months ago (2014-08-26 08:51:38 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-26 10:08:46 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/5667)
6 years, 4 months ago (2014-08-26 10:08:47 UTC) #27
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 4 months ago (2014-08-26 11:10:21 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/490643005/180001
6 years, 4 months ago (2014-08-26 11:10:57 UTC) #29
commit-bot: I haz the power
Committed patchset #7 (180001) as dbf74d923837e2a2208343898fe7f46c8b990242
6 years, 3 months ago (2014-08-26 12:26:05 UTC) #30
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:42:23 UTC) #31
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/0f3d08364420d5b3c6eaa4100799459277758f52
Cr-Commit-Position: refs/heads/master@{#291891}

Powered by Google App Engine
This is Rietveld 408576698