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

Issue 295413002: [fsp] Store mounted file systems in preferences. (Closed)

Created:
6 years, 7 months ago by mtomasz
Modified:
6 years, 6 months ago
Reviewers:
hashimoto, sky
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Visibility:
Public.

Description

[fsp] Store mounted file systems in preferences. Providing extensions will very often mount provided file systems on startup. When an extension is installed, the background is executed, and hence the file system registered. Since providing extensions should be event pages, they will also register all of the request events, so the extension is woken up once there is a request sent to it. However, the background page is not run after a reboot. All of the registered events are remembered in preferences, but mounted file systems not. As a result after a reboot, the file systems are lost. To overcome this issue, this CL introduces storing mounted file systems to preferences, so they are remounted automatically after a reboot, once the extensions are loaded. This is consistent with remembering registered event handlers in preferences. Note, that if the extension is gone after a reboot, then remounting will not be performed, since it is done after the extension is loaded. All of the mounted file systems are written to preferences during shutdown. TEST=TBD BUG=248427 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274214

Patch Set 1 #

Patch Set 2 : Added unit tests. #

Patch Set 3 : Cleaned up. #

Total comments: 17

Patch Set 4 : Addressed comments. #

Patch Set 5 : Fixed naming. #

Patch Set 6 : Added LOG(ERROR). #

Patch Set 7 : Cleaned up + rebased. #

Patch Set 8 : Rebased. #

Patch Set 9 : Fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -9 lines) Patch
M chrome/browser/chromeos/file_system_provider/service.h View 1 2 3 4 5 6 7 8 4 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 2 3 4 5 6 7 8 12 chunks +110 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +126 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
mtomasz
@hashimoto: PTAL. Thanks.
6 years, 7 months ago (2014-05-26 04:50:51 UTC) #1
hashimoto
extensions::EventRouter may clear the registered events at some points. Shouldn't we clear the remembered file ...
6 years, 7 months ago (2014-05-26 08:35:38 UTC) #2
mtomasz
On 2014/05/26 08:35:38, hashimoto wrote: > extensions::EventRouter may clear the registered events at some points. ...
6 years, 7 months ago (2014-05-27 01:12:48 UTC) #3
mtomasz
https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc#newcode369 chrome/browser/chromeos/file_system_provider/service.cc:369: if (!extensions->GetList(extension_id, &file_systems)) On 2014/05/26 08:35:38, hashimoto wrote: > ...
6 years, 7 months ago (2014-05-27 01:13:14 UTC) #4
mtomasz
https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc#newcode338 chrome/browser/chromeos/file_system_provider/service.cc:338: file_system->SetString("file_system_name", it->file_system_name()); On 2014/05/26 08:35:38, hashimoto wrote: > These ...
6 years, 7 months ago (2014-05-27 02:10:27 UTC) #5
mtomasz
https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc#newcode344 chrome/browser/chromeos/file_system_provider/service.cc:344: pref_service->Set(prefs::kFSPMountedFileSystems, extensions); On 2014/05/27 02:10:27, mtomasz wrote: > On ...
6 years, 7 months ago (2014-05-27 02:13:43 UTC) #6
mtomasz
On 2014/05/27 02:13:43, mtomasz wrote: > https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc > File chrome/browser/chromeos/file_system_provider/service.cc (right): > > https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc#newcode344 > ...
6 years, 7 months ago (2014-05-27 02:21:06 UTC) #7
hashimoto
On 2014/05/27 01:12:48, mtomasz wrote: > On 2014/05/26 08:35:38, hashimoto wrote: > > extensions::EventRouter may ...
6 years, 7 months ago (2014-05-27 11:29:16 UTC) #8
hashimoto
https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc#newcode369 chrome/browser/chromeos/file_system_provider/service.cc:369: if (!extensions->GetList(extension_id, &file_systems)) On 2014/05/27 01:13:14, mtomasz wrote: > ...
6 years, 7 months ago (2014-05-27 11:29:24 UTC) #9
mtomasz
https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc#newcode369 chrome/browser/chromeos/file_system_provider/service.cc:369: if (!extensions->GetList(extension_id, &file_systems)) On 2014/05/27 11:29:24, hashimoto wrote: > ...
6 years, 7 months ago (2014-05-28 02:02:18 UTC) #10
mtomasz
On 2014/05/28 02:02:18, mtomasz wrote: > https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc > File chrome/browser/chromeos/file_system_provider/service.cc (right): > > https://codereview.chromium.org/295413002/diff/40001/chrome/browser/chromeos/file_system_provider/service.cc#newcode369 > ...
6 years, 6 months ago (2014-05-29 09:38:09 UTC) #11
hashimoto
Sorry for being late to respond. lgtm
6 years, 6 months ago (2014-05-30 01:15:08 UTC) #12
mtomasz
@sky: PTAL at browser_prefs.cc. Thanks.
6 years, 6 months ago (2014-05-30 14:34:31 UTC) #13
sky
LGTM
6 years, 6 months ago (2014-05-30 16:27:13 UTC) #14
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-05-31 01:05:00 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/295413002/140001
6 years, 6 months ago (2014-05-31 01:09:10 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-05-31 05:35:28 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-31 06:54:25 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/33036)
6 years, 6 months ago (2014-05-31 06:54:26 UTC) #19
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-02 00:29:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/295413002/140001
6 years, 6 months ago (2014-06-02 00:29:24 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-02 01:33:21 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-02 02:49:05 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/33150)
6 years, 6 months ago (2014-06-02 02:49:05 UTC) #24
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 6 months ago (2014-06-02 07:45:12 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/295413002/160001
6 years, 6 months ago (2014-06-02 07:45:37 UTC) #26
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 12:37:57 UTC) #27
Message was sent while issue was closed.
Change committed as 274214

Powered by Google App Engine
This is Rietveld 408576698