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

Issue 190153003: Respect disabling removable devices policy for enterprise users. (Closed)

Created:
6 years, 9 months ago by mtomasz
Modified:
6 years, 9 months ago
Reviewers:
kinaba
CC:
chromium-reviews, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Respect disabling removable devices policy for enterprise users. After recent refactoring, the volume manager is created for every profile, and listens to cros disks events on each of them. As a result, if a USB is inserted, then it is handled by all of the available profiles. If one of them has the policy disabling removable devices set to false, then all profiles (including those having the policy set to true) will get the device mounted. To fix this, this CL prevents this situation, by not adding the VolumeInfo and not emiting an event, if the device is not permitted (but got mounted by another profile). TEST=Tested manually on a enterprise enrolled device. BUG=349298 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255610

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
mtomasz
@kinaba: PTAL. This patch works on ToT. For M-33 the patch will not merge easily, ...
6 years, 9 months ago (2014-03-07 07:18:54 UTC) #1
kinaba
lgtm
6 years, 9 months ago (2014-03-07 07:30:02 UTC) #2
mtomasz
On 2014/03/07 07:30:02, kinaba (ooo until Mar 9) wrote: > lgtm Thanks. For M-33, we ...
6 years, 9 months ago (2014-03-07 07:34:53 UTC) #3
kinaba
On 2014/03/07 07:34:53, mtomasz wrote: > On 2014/03/07 07:30:02, kinaba (ooo until Mar 9) wrote: ...
6 years, 9 months ago (2014-03-07 07:40:21 UTC) #4
mtomasz
On 2014/03/07 07:40:21, kinaba (ooo until Mar 9) wrote: > On 2014/03/07 07:34:53, mtomasz wrote: ...
6 years, 9 months ago (2014-03-07 07:51:06 UTC) #5
kinaba
On 2014/03/07 07:51:06, mtomasz wrote: > On 2014/03/07 07:40:21, kinaba (ooo until Mar 9) wrote: ...
6 years, 9 months ago (2014-03-07 07:51:42 UTC) #6
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 9 months ago (2014-03-07 08:10:48 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/190153003/1
6 years, 9 months ago (2014-03-07 08:13:06 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 08:20:39 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg
6 years, 9 months ago (2014-03-07 08:20:39 UTC) #10
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 9 months ago (2014-03-07 08:22:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/190153003/1
6 years, 9 months ago (2014-03-07 08:24:53 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-07 08:46:35 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-07 08:46:36 UTC) #14
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 9 months ago (2014-03-07 09:32:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/190153003/1
6 years, 9 months ago (2014-03-07 09:34:42 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-07 14:18:19 UTC) #17
Message was sent while issue was closed.
Change committed as 255610

Powered by Google App Engine
This is Rietveld 408576698