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

Issue 10837231: sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components. (Closed)

Created:
8 years, 4 months ago by tim (not reviewing)
Modified:
8 years, 4 months ago
Reviewers:
rlarocque, Nicolas Zea, sky
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin
Visibility:
Public.

Description

sync: add InternalComponentsFactory::Switches to simplify passing switches to internal components. Cleans up backoff retry override code to use InternalComponentsFactory::Switches rather than global bool hack. Also puts keystore encryption flag atop new mechanism. (TBR sky for new chrome_switch). TBR=sky@chromium.org BUG=142029, 139839 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151664

Patch Set 1 : init #

Patch Set 2 : pass switches in test_profile_sync_service.cc #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -209 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.cc View 3 chunks +16 lines, -3 lines 4 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +5 lines, -0 lines 0 comments Download
A sync/engine/backoff_delay_provider.h View 1 chunk +55 lines, -0 lines 0 comments Download
A sync/engine/backoff_delay_provider.cc View 1 chunk +79 lines, -0 lines 0 comments Download
A sync/engine/backoff_delay_provider_unittest.cc View 1 chunk +103 lines, -0 lines 0 comments Download
M sync/engine/sync_scheduler_impl.h View 5 chunks +7 lines, -29 lines 0 comments Download
M sync/engine/sync_scheduler_impl.cc View 9 chunks +4 lines, -77 lines 0 comments Download
M sync/engine/sync_scheduler_unittest.cc View 5 chunks +11 lines, -53 lines 0 comments Download
M sync/engine/sync_scheduler_whitebox_unittest.cc View 2 chunks +6 lines, -1 line 0 comments Download
M sync/internal_api/internal_components_factory_impl.cc View 3 chunks +21 lines, -5 lines 1 comment Download
M sync/internal_api/public/internal_components_factory.h View 2 chunks +29 lines, -2 lines 3 comments Download
M sync/internal_api/public/internal_components_factory_impl.h View 2 chunks +5 lines, -3 lines 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M sync/internal_api/public/test/test_internal_components_factory.h View 2 chunks +6 lines, -3 lines 0 comments Download
M sync/internal_api/public/util/syncer_error.h View 1 chunk +4 lines, -0 lines 0 comments Download
M sync/internal_api/public/util/syncer_error.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 chunk +0 lines, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 2 chunks +1 line, -3 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 7 chunks +14 lines, -7 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M sync/internal_api/test/test_internal_components_factory.cc View 4 chunks +10 lines, -4 lines 0 comments Download
M sync/sessions/sync_session.cc View 1 chunk +3 lines, -8 lines 0 comments Download
M sync/sync.gyp View 2 chunks +3 lines, -0 lines 0 comments Download
M sync/tools/sync_client.cc View 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tim (not reviewing)
rlarocque: please review everything zea: fyi / optional review on InternalComponentsFactory changes, (what we discussed ...
8 years, 4 months ago (2012-08-14 17:56:06 UTC) #1
tim (not reviewing)
note - uploaded patchset that passes the switches configured by SyncBackendHost along to the test ...
8 years, 4 months ago (2012-08-14 18:15:39 UTC) #2
rlarocque
http://codereview.chromium.org/10837231/diff/8031/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10837231/diff/8031/chrome/browser/sync/glue/sync_backend_host.cc#newcode424 chrome/browser/sync/glue/sync_backend_host.cc:424: if (cl->HasSwitch(switches::kSyncKeystoreEncryption)) { nit: I think this would be ...
8 years, 4 months ago (2012-08-14 19:54:07 UTC) #3
tim (not reviewing)
http://codereview.chromium.org/10837231/diff/8031/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10837231/diff/8031/chrome/browser/sync/glue/sync_backend_host.cc#newcode424 chrome/browser/sync/glue/sync_backend_host.cc:424: if (cl->HasSwitch(switches::kSyncKeystoreEncryption)) { On 2012/08/14 19:54:07, rlarocque wrote: > ...
8 years, 4 months ago (2012-08-14 20:20:51 UTC) #4
rlarocque
LGTM http://codereview.chromium.org/10837231/diff/8031/chrome/browser/sync/glue/sync_backend_host.cc File chrome/browser/sync/glue/sync_backend_host.cc (right): http://codereview.chromium.org/10837231/diff/8031/chrome/browser/sync/glue/sync_backend_host.cc#newcode424 chrome/browser/sync/glue/sync_backend_host.cc:424: if (cl->HasSwitch(switches::kSyncKeystoreEncryption)) { On 2012/08/14 20:20:51, timsteele wrote: ...
8 years, 4 months ago (2012-08-14 21:13:04 UTC) #5
tim (not reviewing)
On 2012/08/14 21:13:04, rlarocque wrote: > LGTM > > http://codereview.chromium.org/10837231/diff/8031/chrome/browser/sync/glue/sync_backend_host.cc > File chrome/browser/sync/glue/sync_backend_host.cc (right): > ...
8 years, 4 months ago (2012-08-15 00:53:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/10837231/8031
8 years, 4 months ago (2012-08-15 00:53:50 UTC) #7
commit-bot: I haz the power
Presubmit check for 10837231-8031 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 4 months ago (2012-08-15 00:54:00 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/10837231/8031
8 years, 4 months ago (2012-08-15 01:03:56 UTC) #9
commit-bot: I haz the power
8 years, 4 months ago (2012-08-15 06:18:38 UTC) #10
Change committed as 151664

Powered by Google App Engine
This is Rietveld 408576698