|
|
Chromium Code Reviews|
Created:
4 years, 2 months ago by yamaguchi Modified:
4 years, 1 month ago Reviewers:
hirono CC:
chromium-reviews, hashimoto+watch_chromium.org, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, mtomasz+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, davemoore+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionRemount all removable storage devices when received update of
ExternalStorageReadOnly policy.
The end-to-end test can be done manually in this way:
1. Enter public session mode.
See https://support.google.com/chrome/a/answer/3017014?hl=en
2. Plug a removable storage / MTP device.
3. Change the policy in Google admin and make sure it is reloaded at chrome://policy.
4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out.
This change depends on
https://chromium-review.googlesource.com/#/c/390410/
in chromeos. (which is already merged to trunk)
BUG=642247
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
TEST=manual test as described above
Committed: https://crrev.com/28bce536b995429341b58d5bb6a826228bb6ef15
Cr-Commit-Position: refs/heads/master@{#431206}
Patch Set 1 #Patch Set 2 : Add unit test for DiskMountManager. #Patch Set 3 : Sync to head. #Patch Set 4 : sync to head. #Patch Set 5 : Do not remount RO devices. Store RO option to disks object. #Patch Set 6 : sync to head #Patch Set 7 : Revise test. #Patch Set 8 : Sync to head #Patch Set 9 : sync to 2451603002 #Patch Set 10 : Sync to submitted dependency CL. #Patch Set 11 : Sync to head #Patch Set 12 : Fix regression bug. #Patch Set 13 : Fix indent #
Total comments: 2
Patch Set 14 : User ASSERT_EQ to avoid test crash. #
Messages
Total messages: 46 (38 generated)
Description was changed from ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. WIP. BUG=642247 ========== to ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. WIP. BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: 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_...)
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. WIP. BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ==========
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
Description was changed from ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation ========== to ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. The end-to-end test can be done manually in this way: 1. Enter public session mode. See https://support.google.com/chrome/a/answer/3017014?hl=en 2. Plug a removable storage / MTP device. 3. Change the policy in Google admin and make sure it is reloaded at chrome://policy. 4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out. BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TEST=manual test as described above ==========
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. The end-to-end test can be done manually in this way: 1. Enter public session mode. See https://support.google.com/chrome/a/answer/3017014?hl=en 2. Plug a removable storage / MTP device. 3. Change the policy in Google admin and make sure it is reloaded at chrome://policy. 4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out. BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TEST=manual test as described above ========== to ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. The end-to-end test can be done manually in this way: 1. Enter public session mode. See https://support.google.com/chrome/a/answer/3017014?hl=en 2. Plug a removable storage / MTP device. 3. Change the policy in Google admin and make sure it is reloaded at chrome://policy. 4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out. This change depends on https://chromium-review.googlesource.com/#/c/390410/ in chromeos. (which is already merged to trunk) BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TEST=manual test as described above ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
yamaguchi@chromium.org changed reviewers: + fukino@chromium.org
yamaguchi@chromium.org changed reviewers: - fukino@chromium.org
yamaguchi@chromium.org changed reviewers: + fukino@chromium.org
ptal
yamaguchi@chromium.org changed reviewers: + hirono@chromium.org - fukino@chromium.org
lgtm with a nit! https://codereview.chromium.org/2401963002/diff/230001/chrome/browser/chromeo... File chrome/browser/chromeos/file_manager/volume_manager_unittest.cc (right): https://codereview.chromium.org/2401963002/diff/230001/chrome/browser/chromeo... chrome/browser/chromeos/file_manager/volume_manager_unittest.cc:798: EXPECT_EQ(2U, disk_mount_manager_->remount_all_requests().size()); nit: Should be ASSERT_EQ, because the test will crash at #800 if the size is zero.
The CQ bit was checked by yamaguchi@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by yamaguchi@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from hirono@chromium.org Link to the patchset: https://codereview.chromium.org/2401963002/#ps250001 (title: "User ASSERT_EQ to avoid test crash.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Message was sent while issue was closed.
Description was changed from ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. The end-to-end test can be done manually in this way: 1. Enter public session mode. See https://support.google.com/chrome/a/answer/3017014?hl=en 2. Plug a removable storage / MTP device. 3. Change the policy in Google admin and make sure it is reloaded at chrome://policy. 4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out. This change depends on https://chromium-review.googlesource.com/#/c/390410/ in chromeos. (which is already merged to trunk) BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TEST=manual test as described above ========== to ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. The end-to-end test can be done manually in this way: 1. Enter public session mode. See https://support.google.com/chrome/a/answer/3017014?hl=en 2. Plug a removable storage / MTP device. 3. Change the policy in Google admin and make sure it is reloaded at chrome://policy. 4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out. This change depends on https://chromium-review.googlesource.com/#/c/390410/ in chromeos. (which is already merged to trunk) BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TEST=manual test as described above ==========
Message was sent while issue was closed.
Committed patchset #14 (id:250001)
Message was sent while issue was closed.
Description was changed from ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. The end-to-end test can be done manually in this way: 1. Enter public session mode. See https://support.google.com/chrome/a/answer/3017014?hl=en 2. Plug a removable storage / MTP device. 3. Change the policy in Google admin and make sure it is reloaded at chrome://policy. 4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out. This change depends on https://chromium-review.googlesource.com/#/c/390410/ in chromeos. (which is already merged to trunk) BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TEST=manual test as described above ========== to ========== Remount all removable storage devices when received update of ExternalStorageReadOnly policy. The end-to-end test can be done manually in this way: 1. Enter public session mode. See https://support.google.com/chrome/a/answer/3017014?hl=en 2. Plug a removable storage / MTP device. 3. Change the policy in Google admin and make sure it is reloaded at chrome://policy. 4. Check if the device is mounted RO/RW accordingly by right-clicking it in Files app. When the device is read-only, it the "format drive" menu will be grayed out. This change depends on https://chromium-review.googlesource.com/#/c/390410/ in chromeos. (which is already merged to trunk) BUG=642247 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation TEST=manual test as described above Committed: https://crrev.com/28bce536b995429341b58d5bb6a826228bb6ef15 Cr-Commit-Position: refs/heads/master@{#431206} ==========
Message was sent while issue was closed.
Patchset 14 (id:??) landed as https://crrev.com/28bce536b995429341b58d5bb6a826228bb6ef15 Cr-Commit-Position: refs/heads/master@{#431206}
Message was sent while issue was closed.
https://codereview.chromium.org/2401963002/diff/230001/chrome/browser/chromeo... File chrome/browser/chromeos/file_manager/volume_manager_unittest.cc (right): https://codereview.chromium.org/2401963002/diff/230001/chrome/browser/chromeo... chrome/browser/chromeos/file_manager/volume_manager_unittest.cc:798: EXPECT_EQ(2U, disk_mount_manager_->remount_all_requests().size()); On 2016/11/10 07:12:24, hirono wrote: > nit: Should be ASSERT_EQ, because the test will crash at #800 if the size is > zero. Done. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
