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

Issue 239993002: [fsp] Create a RequestManager per a ProvidedFileSystem instance. (Closed)

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

Description

[fsp] Create a RequestManager per a ProvidedFileSystem instance. Before, there was only one single request manager per profile, and all of the file systems were sharing it. However, it is better to create it per file system for several reasons. First of all, there is no need to share it, since it is lightweight, and no data is shared between different file systems. Secondly, it is a part of implementation of the ProvidedFileSystem. The testing FakeProvidedFileSystem does not use a request manager at all, so there is no need to create it for unit tests. Also, it greatly simplifies the request manager, since there is no need to verify the extension id and file system id every time the request manager is used. TEST=unit_tests: *FileSystemProvider* BUG=248427 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264191

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixed and rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -229 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 5 chunks +43 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 2 chunks +7 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_unittest.cc View 3 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.h View 2 chunks +4 lines, -27 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.cc View 6 chunks +13 lines, -53 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager_unittest.cc View 19 chunks +40 lines, -75 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.h View 4 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 4 chunks +7 lines, -12 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
mtomasz
@hashimoto: PTAL. This is mostly a mechanical change. Thanks.
6 years, 8 months ago (2014-04-16 03:50:29 UTC) #1
mtomasz
On 2014/04/16 03:50:29, mtomasz wrote: > @hashimoto: PTAL. This is mostly a mechanical change. Thanks. ...
6 years, 8 months ago (2014-04-16 03:50:57 UTC) #2
hashimoto
lgtm https://codereview.chromium.org/239993002/diff/1/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc (right): https://codereview.chromium.org/239993002/diff/1/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc#newcode37 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc:37: // TODO(mtomasz): Create a request manager in ProvidedFileSystem, ...
6 years, 8 months ago (2014-04-16 04:14:12 UTC) #3
mtomasz
https://codereview.chromium.org/239993002/diff/1/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc (right): https://codereview.chromium.org/239993002/diff/1/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc#newcode37 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc:37: // TODO(mtomasz): Create a request manager in ProvidedFileSystem, since ...
6 years, 8 months ago (2014-04-16 05:08:10 UTC) #4
hashimoto
lgtm
6 years, 8 months ago (2014-04-16 05:14:10 UTC) #5
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 8 months ago (2014-04-16 05:43:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/239993002/20001
6 years, 8 months ago (2014-04-16 05:43:21 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-16 06:16:16 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_gn_rel
6 years, 8 months ago (2014-04-16 06:16:16 UTC) #9
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 8 months ago (2014-04-16 06:17:56 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/239993002/20001
6 years, 8 months ago (2014-04-16 06:19:28 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 13:03:38 UTC) #12
Message was sent while issue was closed.
Change committed as 264191

Powered by Google App Engine
This is Rietveld 408576698