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

Issue 167913002: sync: Add helper class for P2P invalidations (Closed)

Created:
6 years, 10 months ago by rlarocque
Modified:
6 years, 10 months ago
Reviewers:
haitaol1
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Add helper class for P2P invalidations Introduces the P2PInvalidationForwarder. This class listens to ProfileSyncService events and generates P2P invalidations when it sees that the ProfileSyncServce has committed something. This is useful only in tests, where we do not have a real (non-P2P) invalidations. The P2PInvalidationForwarder's functionality is not new. It used to reside in the ProfileSyncServiceHarness. Moving it into this new class is a step towards making the ProfileSyncServiceHarness not listen to ProfileSyncService events. BUG=323380 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252224

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rebase #

Patch Set 3 : Review fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -13 lines) Patch
A chrome/browser/sync/test/integration/p2p_invalidation_forwarder.h View 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/integration/p2p_invalidation_forwarder.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/profile_sync_service_harness.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/profile_sync_service_harness.cc View 1 2 3 chunks +4 lines, -11 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rlarocque
Here's another patch broken off of https://codereview.chromium.org/165393010/. Fortunately, it doesn't conflict with the first one ...
6 years, 10 months ago (2014-02-14 23:35:47 UTC) #1
rlarocque
Friendly ping.
6 years, 10 months ago (2014-02-19 19:08:39 UTC) #2
haitaol1
https://codereview.chromium.org/167913002/diff/1/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/167913002/diff/1/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode211 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:211: new P2PInvalidationForwarder(service(), p2p_invalidation_service_)); You don't need p2p_invalidation_service_ if creating ...
6 years, 10 months ago (2014-02-19 21:15:21 UTC) #3
rlarocque
Patch updated. PTAL. https://codereview.chromium.org/167913002/diff/1/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/167913002/diff/1/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode211 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:211: new P2PInvalidationForwarder(service(), p2p_invalidation_service_)); On 2014/02/19 21:15:21, ...
6 years, 10 months ago (2014-02-19 22:21:14 UTC) #4
haitaol1
lgtm
6 years, 10 months ago (2014-02-19 23:02:52 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 10 months ago (2014-02-19 23:03:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/167913002/100001
6 years, 10 months ago (2014-02-19 23:19:22 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/167913002/100001
6 years, 10 months ago (2014-02-20 01:11:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/167913002/100001
6 years, 10 months ago (2014-02-20 04:55:12 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/167913002/100001
6 years, 10 months ago (2014-02-20 08:55:02 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/167913002/100001
6 years, 10 months ago (2014-02-20 12:23:30 UTC) #11
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 13:45:47 UTC) #12
Message was sent while issue was closed.
Change committed as 252224

Powered by Google App Engine
This is Rietveld 408576698