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

Issue 2201023002: Change access mode of disk devices when mounting based on config. (Closed)

Created:
4 years, 4 months ago by yamaguchi
Modified:
4 years, 4 months ago
Reviewers:
satorux1, hashimoto, fukino
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change access mode of disk devices when mounting based on config. BUG=629945 Committed: https://crrev.com/cc8186b7a74efde6bfd4e553f9fb3fc1fb72713c Cr-Commit-Position: refs/heads/master@{#410309}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Do not mount archive files in read-only mode because it's not necessarily an external device. #

Patch Set 3 : Move a helper function out of the class. #

Total comments: 2

Patch Set 4 : Fix comment. #

Patch Set 5 : Update fake class and tests to follow the change. #

Patch Set 6 : Sync to ToT and reformat. #

Total comments: 1

Patch Set 7 : Explicitly check if the preference has the path. #

Total comments: 1

Patch Set 8 : Register default value for the new preference. #

Total comments: 2

Patch Set 9 : Add test case to check read_only parameter to disk mount manager. #

Total comments: 2

Patch Set 10 : Use the right parameter type in the fake object. #

Patch Set 11 : Fix typo. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -30 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +33 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/login/kiosk_browsertest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/disks/disk_mount_manager.h View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M chromeos/disks/disk_mount_manager.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/disks/mock_disk_mount_manager.h View 1 1 chunk +6 lines, -2 lines 0 comments Download
M chromeos/disks/mock_disk_mount_manager.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 74 (51 generated)
yamaguchi
4 years, 4 months ago (2016-08-02 10:34:00 UTC) #2
fukino
+satorux for chromeos/disks/. https://codereview.chromium.org/2201023002/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc File chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc (right): https://codereview.chromium.org/2201023002/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc#newcode173 chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc:173: display_name.AsUTF8Unsafe(), chromeos::MOUNT_TYPE_ARCHIVE, access_mode); Should we specify ...
4 years, 4 months ago (2016-08-03 07:18:19 UTC) #4
satorux1
chromeos/disks lgtm with a request https://codereview.chromium.org/2201023002/diff/1/chromeos/disks/disk_mount_manager.h File chromeos/disks/disk_mount_manager.h (right): https://codereview.chromium.org/2201023002/diff/1/chromeos/disks/disk_mount_manager.h#newcode265 chromeos/disks/disk_mount_manager.h:265: MountAccessMode access_mode) = 0; ...
4 years, 4 months ago (2016-08-03 07:29:33 UTC) #5
yamaguchi
https://codereview.chromium.org/2201023002/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc File chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc (right): https://codereview.chromium.org/2201023002/diff/1/chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc#newcode173 chrome/browser/chromeos/extensions/file_manager/private_api_mount.cc:173: display_name.AsUTF8Unsafe(), chromeos::MOUNT_TYPE_ARCHIVE, access_mode); On 2016/08/03 07:18:19, fukino wrote: > ...
4 years, 4 months ago (2016-08-03 10:22:14 UTC) #6
fukino
lgtm with a nit https://codereview.chromium.org/2201023002/diff/30001/chromeos/disks/disk_mount_manager.h File chromeos/disks/disk_mount_manager.h (right): https://codereview.chromium.org/2201023002/diff/30001/chromeos/disks/disk_mount_manager.h#newcode261 chromeos/disks/disk_mount_manager.h:261: // access_mode specifies read-only or ...
4 years, 4 months ago (2016-08-04 02:22:38 UTC) #7
fukino
lgtm with a nit
4 years, 4 months ago (2016-08-04 02:22:39 UTC) #8
yamaguchi
https://codereview.chromium.org/2201023002/diff/30001/chromeos/disks/disk_mount_manager.h File chromeos/disks/disk_mount_manager.h (right): https://codereview.chromium.org/2201023002/diff/30001/chromeos/disks/disk_mount_manager.h#newcode261 chromeos/disks/disk_mount_manager.h:261: // access_mode specifies read-only or read-write mount mode for ...
4 years, 4 months ago (2016-08-04 02:32:57 UTC) #9
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/2201023002/50001
4 years, 4 months ago (2016-08-04 02:33:23 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/241139) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-04 02:51:10 UTC) #14
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/2201023002/70001
4 years, 4 months ago (2016-08-04 04:43:28 UTC) #21
yamaguchi
Updated the fake class and some tests to resolve compilation errors. patl.
4 years, 4 months ago (2016-08-04 04:50:55 UTC) #24
yamaguchi
PTAL. Do we have any other ways to avoid errors when adding preference values like ...
4 years, 4 months ago (2016-08-04 09:43:31 UTC) #41
yamaguchi
+hashimoto for the code handling preference.
4 years, 4 months ago (2016-08-05 06:11:39 UTC) #51
yamaguchi
https://codereview.chromium.org/2201023002/diff/110001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2201023002/diff/110001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode140 chrome/browser/chromeos/file_manager/volume_manager.cc:140: profile->GetPrefs()->HasPrefPath(prefs::kExternalStorageReadOnly) Reverted this check in Patch Set 8 because ...
4 years, 4 months ago (2016-08-05 06:14:44 UTC) #52
hashimoto
lgtm https://codereview.chromium.org/2201023002/diff/130001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc File chrome/browser/chromeos/file_manager/volume_manager_unittest.cc (right): https://codereview.chromium.org/2201023002/diff/130001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc#newcode675 chrome/browser/chromeos/file_manager/volume_manager_unittest.cc:675: TEST_F(VolumeManagerTest, OnExternalStorageDisabledChanged) { Are we going to have ...
4 years, 4 months ago (2016-08-05 06:24:28 UTC) #53
yamaguchi
plat https://codereview.chromium.org/2201023002/diff/130001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc File chrome/browser/chromeos/file_manager/volume_manager_unittest.cc (right): https://codereview.chromium.org/2201023002/diff/130001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc#newcode675 chrome/browser/chromeos/file_manager/volume_manager_unittest.cc:675: TEST_F(VolumeManagerTest, OnExternalStorageDisabledChanged) { On 2016/08/05 06:24:28, hashimoto wrote: ...
4 years, 4 months ago (2016-08-05 07:05:12 UTC) #56
yamaguchi
PTAL
4 years, 4 months ago (2016-08-05 07:05:22 UTC) #57
hashimoto
https://codereview.chromium.org/2201023002/diff/150001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc File chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc (right): https://codereview.chromium.org/2201023002/diff/150001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc#newcode17 chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc:17: bool read_only) Shouldn't this be MountAccessMode instead of bool?
4 years, 4 months ago (2016-08-05 07:27:47 UTC) #58
yamaguchi
https://codereview.chromium.org/2201023002/diff/150001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc File chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc (right): https://codereview.chromium.org/2201023002/diff/150001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc#newcode17 chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc:17: bool read_only) On 2016/08/05 07:27:46, hashimoto wrote: > Shouldn't ...
4 years, 4 months ago (2016-08-08 05:53:44 UTC) #65
hashimoto
lgtm
4 years, 4 months ago (2016-08-08 05:58:25 UTC) #66
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/2201023002/190001
4 years, 4 months ago (2016-08-08 06:35:59 UTC) #71
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years, 4 months ago (2016-08-08 06:39:13 UTC) #72
commit-bot: I haz the power
4 years, 4 months ago (2016-08-08 06:41:13 UTC) #74
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/cc8186b7a74efde6bfd4e553f9fb3fc1fb72713c
Cr-Commit-Position: refs/heads/master@{#410309}

Powered by Google App Engine
This is Rietveld 408576698