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

Issue 334713008: Use AttachmentUploadImpl instead of FakeAttachmentUploader. (Closed)

Created:
6 years, 6 months ago by maniscalco
Modified:
6 years, 6 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org, pavely
Project:
chromium
Visibility:
Public.

Description

Use AttachmentUploadImpl instead of FakeAttachmentUploader. ProfileSyncComponentsFactoryImpl now creates an AttachmentService with an AttachmentUploadImpl instead of a fake. Moved the logic for computing the sync server URL into ProfileSyncService. Currently, a new AUI is created for each AttachmentService. In the future, we will create one AUI that is shared among AttachmentService instances. ProfileSyncComponentsFactoryImplTest now uses TestBrowserThreadBundle instead of the deprecated TestBrowserThread. PSCFIT now needs an IO thread (for AUI's URLFetcher). BUG= TBR=finnur@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278006

Patch Set 1 : #

Patch Set 2 : Pass AUI ingredients into PSCFI's ctor. #

Patch Set 3 : Use TestBrowserThreadBundle in ProfileSyncComponentsFactoryImplTest. #

Patch Set 4 : Explicitly pass CommandLine to GetSyncServiceURL to facilitate unit testing. #

Patch Set 5 : Make some constants private. #

Patch Set 6 : Back to public; needed for tests. #

Total comments: 2

Patch Set 7 : Apply CR feedback from tim. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -85 lines) Patch
M chrome/browser/extensions/api/preferences_private/preferences_private_apitest.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.h View 1 3 chunks +27 lines, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl.cc View 1 2 3 4 5 6 4 chunks +76 lines, -7 lines 0 comments Download
M chrome/browser/sync/profile_sync_components_factory_impl_unittest.cc View 1 2 3 3 chunks +39 lines, -15 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.h View 1 2 3 5 6 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service.cc View 1 2 3 7 chunks +38 lines, -40 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_factory.cc View 1 2 3 3 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_mock.cc View 1 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_startup_unittest.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_unittest.cc View 1 2 3 4 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 1 chunk +6 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
maniscalco
Tim, would you please review this change?
6 years, 6 months ago (2014-06-16 18:51:08 UTC) #1
maniscalco
On 2014/06/16 18:51:08, maniscalco wrote: > Tim, would you please review this change? Actually, you ...
6 years, 6 months ago (2014-06-16 20:58:25 UTC) #2
maniscalco
On 2014/06/16 20:58:25, maniscalco wrote: > On 2014/06/16 18:51:08, maniscalco wrote: > > Tim, would ...
6 years, 6 months ago (2014-06-17 21:40:57 UTC) #3
tim (not reviewing)
LGTM with nit https://codereview.chromium.org/334713008/diff/200001/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://codereview.chromium.org/334713008/diff/200001/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode632 chrome/browser/sync/profile_sync_components_factory_impl.cc:632: std::string url_prefix = sync_service_url_.spec() + "/attachments/"; ...
6 years, 6 months ago (2014-06-18 02:59:48 UTC) #4
maniscalco
Thanks for reviewing! https://codereview.chromium.org/334713008/diff/200001/chrome/browser/sync/profile_sync_components_factory_impl.cc File chrome/browser/sync/profile_sync_components_factory_impl.cc (right): https://codereview.chromium.org/334713008/diff/200001/chrome/browser/sync/profile_sync_components_factory_impl.cc#newcode632 chrome/browser/sync/profile_sync_components_factory_impl.cc:632: std::string url_prefix = sync_service_url_.spec() + "/attachments/"; ...
6 years, 6 months ago (2014-06-18 03:56:43 UTC) #5
maniscalco
Adding finnur as TBR. finnur, would you please review c/b/e/api/preferences_private/preferences_private_apitest.cc
6 years, 6 months ago (2014-06-18 04:00:32 UTC) #6
maniscalco
The CQ bit was checked by maniscalco@chromium.org
6 years, 6 months ago (2014-06-18 04:00:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/maniscalco@chromium.org/334713008/210001
6 years, 6 months ago (2014-06-18 04:02:05 UTC) #8
commit-bot: I haz the power
Change committed as 278006
6 years, 6 months ago (2014-06-18 10:03:11 UTC) #9
Finnur
preferences_private_apitest.cc rubberstamp LGRM
6 years, 6 months ago (2014-06-18 11:59:10 UTC) #10
Finnur
6 years, 6 months ago (2014-06-18 11:59:18 UTC) #11
Message was sent while issue was closed.
On 2014/06/18 11:59:10, Finnur wrote:
> preferences_private_apitest.cc rubberstamp LGRM

LGTM even.

Powered by Google App Engine
This is Rietveld 408576698