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

Issue 2348813002: Fix a bug that unmounting devices on the policy update can be a busy loop. (Closed)

Created:
4 years, 3 months ago by yamaguchi
Modified:
4 years, 2 months ago
Reviewers:
hidehiko, Lei Zhang, fukino
CC:
chromium-reviews, yamaguchi+watch_chromium.org, oka+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, davemoore+watch_chromium.org, hidehiko
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix a bug that unmounting devices on the policy update can be a busy loop. TEST=unit_tests passed BUG=643085 Committed: https://crrev.com/91a38bcb48c7e1eb4fb232d9e562c3c614fc19b8 Cr-Commit-Position: refs/heads/master@{#421163}

Patch Set 1 #

Patch Set 2 : Eliminate unrelated and unnecessary change. #

Total comments: 10

Patch Set 3 : Format fix, use reference where copy isn't needed. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -9 lines) Patch
M chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h View 1 2 4 chunks +10 lines, -0 lines 1 comment Download
M chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc View 1 2 1 chunk +13 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 2 chunks +23 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_unittest.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (13 generated)
yamaguchi
4 years, 3 months ago (2016-09-16 03:21:47 UTC) #4
fukino
https://codereview.chromium.org/2348813002/diff/20001/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/2348813002/diff/20001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc#newcode112 chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc:112: pending_unmount_callbacks_.push(callback); Why do we need FinishAllUnmountPathRequests() called? Is it ...
4 years, 3 months ago (2016-09-16 07:31:35 UTC) #7
hidehiko
fyi https://codereview.chromium.org/2348813002/diff/20001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2348813002/diff/20001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode691 chrome/browser/chromeos/file_manager/volume_manager.cc:691: std::string mount_path = nit: const &. Ditto for ...
4 years, 3 months ago (2016-09-16 08:14:33 UTC) #9
yamaguchi
https://codereview.chromium.org/2348813002/diff/20001/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/2348813002/diff/20001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc#newcode112 chrome/browser/chromeos/file_manager/fake_disk_mount_manager.cc:112: pending_unmount_callbacks_.push(callback); On 2016/09/16 07:31:34, fukino wrote: > Why do ...
4 years, 3 months ago (2016-09-16 08:49:51 UTC) #10
yamaguchi
https://codereview.chromium.org/2348813002/diff/20001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h File chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h (right): https://codereview.chromium.org/2348813002/diff/20001/chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h#newcode79 chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h:79: bool FinishAllUnmountPathRequests(); On 2016/09/16 07:31:34, fukino wrote: > This ...
4 years, 2 months ago (2016-09-26 02:25:28 UTC) #11
fukino
lgtm
4 years, 2 months ago (2016-09-27 09:06:32 UTC) #12
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/2348813002/40001
4 years, 2 months ago (2016-09-27 10:19:56 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-27 10:25:02 UTC) #19
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/91a38bcb48c7e1eb4fb232d9e562c3c614fc19b8 Cr-Commit-Position: refs/heads/master@{#421163}
4 years, 2 months ago (2016-09-27 10:26:43 UTC) #21
Lei Zhang
4 years, 2 months ago (2016-09-27 17:21:02 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/2348813002/diff/40001/chrome/browser/chromeos...
File chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h (right):

https://codereview.chromium.org/2348813002/diff/40001/chrome/browser/chromeos...
chrome/browser/chromeos/file_manager/fake_disk_mount_manager.h:92:
std::queue<UnmountPathCallback> pending_unmount_callbacks_;
With this, we can no longer depend on base/callback_forward.h, and we have to
include base/callback.h.

https://codereview.chromium.org/2376733002

Powered by Google App Engine
This is Rietveld 408576698