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

Issue 1137383002: Show the eject button only for removabled and file handlers. (Closed)

Created:
5 years, 7 months ago by mtomasz
Modified:
5 years, 7 months ago
Reviewers:
hirono, fukino
CC:
chromium-reviews, extensions-reviews_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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show the eject button only for removables and file handlers. This CL passes the "configure" and "source" flag to VolumeManager. Additionally all other volume types have those flags, so we can add a link to disable Drive as it's configuration. Finally, logic for displaying the "eject" icon has been simplified. TBR=fukino@chromium.org TEST=browser_test: *FileManagerPrivateApi*Mount* BUG=447101 Committed: https://crrev.com/b9c370ab86c7f896a17853b1d502635efc834fbb Cr-Commit-Position: refs/heads/master@{#330080}

Patch Set 1 #

Patch Set 2 : Added a test. #

Patch Set 3 : Simplified. #

Total comments: 12

Patch Set 4 : Addressed comments + fixed tests. #

Total comments: 10

Patch Set 5 : Fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+461 lines, -281 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/file_manager_private_apitest.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_util.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.h View 1 2 3 4 7 chunks +17 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 3 4 12 chunks +30 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/abort_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/add_watcher_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/configure_unittest.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/copy_entry_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/create_directory_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/create_file_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/delete_entry_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/move_entry_unittest.cc View 1 2 3 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/open_file_unittest.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_directory_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/remove_watcher_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/truncate_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/write_file_unittest.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_info.h View 4 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc View 2 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_unittest.cc View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/registry_unittest.cc View 1 2 3 3 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.h View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 2 3 4 3 chunks +36 lines, -13 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/throttled_file_system_unittest.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/file_manager_private.idl View 1 2 3 4 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_browser/mount_test/test.js View 1 2 3 7 chunks +34 lines, -7 lines 0 comments Download
M third_party/closure_compiler/externs/file_manager_private.js View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/background/js/volume_manager.js View 1 2 3 5 chunks +101 lines, -112 lines 0 comments Download
M ui/file_manager/file_manager/background/js/volume_manager_unittest.js View 1 2 3 4 3 chunks +11 lines, -4 lines 0 comments Download
M ui/file_manager/file_manager/common/js/volume_manager_common.js View 1 chunk +12 lines, -0 lines 0 comments Download
M ui/file_manager/file_manager/foreground/js/ui/directory_tree.js View 1 2 3 4 8 chunks +39 lines, -47 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
mtomasz
@hirono: PTAL. Thanks!
5 years, 7 months ago (2015-05-14 10:06:47 UTC) #2
hirono
https://codereview.chromium.org/1137383002/diff/40001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/1137383002/diff/40001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode140 chrome/browser/chromeos/file_manager/volume_manager.cc:140: configurable_(false) { Please also initialize source_. https://codereview.chromium.org/1137383002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc ...
5 years, 7 months ago (2015-05-14 10:43:09 UTC) #3
mtomasz
https://codereview.chromium.org/1137383002/diff/40001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/1137383002/diff/40001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode140 chrome/browser/chromeos/file_manager/volume_manager.cc:140: configurable_(false) { On 2015/05/14 10:43:08, hirono wrote: > Please ...
5 years, 7 months ago (2015-05-15 02:03:38 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137383002/60001
5 years, 7 months ago (2015-05-15 03:57:49 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/18302)
5 years, 7 months ago (2015-05-15 04:51:38 UTC) #8
hirono
lgtm! https://codereview.chromium.org/1137383002/diff/60001/chrome/browser/chromeos/file_manager/volume_manager.h File chrome/browser/chromeos/file_manager/volume_manager.h (right): https://codereview.chromium.org/1137383002/diff/60001/chrome/browser/chromeos/file_manager/volume_manager.h#newcode103 chrome/browser/chromeos/file_manager/volume_manager.h:103: const Source source() const { return source_; } ...
5 years, 7 months ago (2015-05-15 08:27:46 UTC) #9
mtomasz
https://codereview.chromium.org/1137383002/diff/60001/chrome/browser/chromeos/file_manager/volume_manager.h File chrome/browser/chromeos/file_manager/volume_manager.h (right): https://codereview.chromium.org/1137383002/diff/60001/chrome/browser/chromeos/file_manager/volume_manager.h#newcode103 chrome/browser/chromeos/file_manager/volume_manager.h:103: const Source source() const { return source_; } On ...
5 years, 7 months ago (2015-05-15 09:32:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137383002/80001
5 years, 7 months ago (2015-05-15 09:32:53 UTC) #13
mtomasz
@fukino: PTAL at externs. Thanks!
5 years, 7 months ago (2015-05-15 09:36:58 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/63930)
5 years, 7 months ago (2015-05-15 09:39:42 UTC) #17
mtomasz
@fukino: Let me TBR. The change is trivial, the CL is already reviewed by @hirono ...
5 years, 7 months ago (2015-05-15 09:59:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137383002/80001
5 years, 7 months ago (2015-05-15 10:00:01 UTC) #20
fukino
On 2015/05/15 09:36:58, mtomasz wrote: > @fukino: PTAL at externs. Thanks! externs lgtm!
5 years, 7 months ago (2015-05-15 10:24:41 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 7 months ago (2015-05-15 11:54:28 UTC) #22
commit-bot: I haz the power
5 years, 7 months ago (2015-05-15 11:55:06 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b9c370ab86c7f896a17853b1d502635efc834fbb
Cr-Commit-Position: refs/heads/master@{#330080}

Powered by Google App Engine
This is Rietveld 408576698