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

Issue 661393002: [fsp] Separate logic for saving/restoring state to a separate class. (Closed)

Created:
6 years, 2 months ago by mtomasz
Modified:
6 years, 2 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[fsp] Separate logic for saving/restoring state to a separate class. Previously, the Service class was responsible for saving and restoring state, as well as managing file systems. Testing it became problematic. This patch separates it into two classes Service and Registry, which can be both tested separately. TBR=pam@chromium.org TEST=unit_tests: *FileSystemProvider*Registry* BUG=248427 Committed: https://crrev.com/bd1170f84cdcc4b1601a414ee68702d8e9361849 Cr-Commit-Position: refs/heads/master@{#300422}

Patch Set 1 #

Total comments: 5

Patch Set 2 : C++11 features. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+898 lines, -455 lines) Patch
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_info.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_observer.h View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_unittest.cc View 2 chunks +2 lines, -3 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/registry.h View 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/registry.cc View 1 1 chunk +250 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/registry_interface.h View 1 chunk +65 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/registry_interface.cc View 1 chunk +6 lines, -3 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/registry_unittest.cc View 1 1 chunk +323 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.h View 4 chunks +8 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 8 chunks +43 lines, -230 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 9 chunks +125 lines, -195 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
mtomasz
https://codereview.chromium.org/661393002/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h File chrome/browser/chromeos/file_system_provider/provided_file_system_info.h (left): https://codereview.chromium.org/661393002/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system_info.h#oldcode23 chrome/browser/chromeos/file_system_provider/provided_file_system_info.h:23: std::string extension_id; (This was unused.) https://codereview.chromium.org/661393002/diff/1/chrome/browser/chromeos/file_system_provider/registry.cc File chrome/browser/chromeos/file_system_provider/registry.cc (right): ...
6 years, 2 months ago (2014-10-20 05:37:43 UTC) #1
mtomasz
@fukino: PTAL. Thanks! It's mostly a mechanical change - moving code from service_* to registry_*.
6 years, 2 months ago (2014-10-20 05:38:23 UTC) #3
fukino
LGTM! But I have a question. https://codereview.chromium.org/661393002/diff/1/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/661393002/diff/1/chrome/browser/chromeos/file_system_provider/service.cc#newcode295 chrome/browser/chromeos/file_system_provider/service.cc:295: for (RegistryInterface::RestoredFileSystems::const_iterator it ...
6 years, 2 months ago (2014-10-20 09:42:05 UTC) #4
mtomasz
https://codereview.chromium.org/661393002/diff/1/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/661393002/diff/1/chrome/browser/chromeos/file_system_provider/service.cc#newcode295 chrome/browser/chromeos/file_system_provider/service.cc:295: for (RegistryInterface::RestoredFileSystems::const_iterator it = On 2014/10/20 09:42:04, fukino wrote: ...
6 years, 2 months ago (2014-10-21 02:22:20 UTC) #5
mtomasz
@pam: PTAL at chrome/browser/prefs/browser_prefs.cc. TBR since a trivial change.
6 years, 2 months ago (2014-10-21 02:23:55 UTC) #7
mtomasz
@fukino: I introduced auto. PTAL at the changes. Thanks!
6 years, 2 months ago (2014-10-21 04:49:06 UTC) #8
fukino
On 2014/10/21 04:49:06, mtomasz wrote: > @fukino: I introduced auto. PTAL at the changes. Thanks! ...
6 years, 2 months ago (2014-10-21 04:56:15 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/661393002/20001
6 years, 2 months ago (2014-10-21 04:57:57 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 2 months ago (2014-10-21 05:34:30 UTC) #12
commit-bot: I haz the power
6 years, 2 months ago (2014-10-21 05:35:30 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/bd1170f84cdcc4b1601a414ee68702d8e9361849
Cr-Commit-Position: refs/heads/master@{#300422}

Powered by Google App Engine
This is Rietveld 408576698