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

Issue 10817023: [Sync] Pass the correct set of enabled types to the sync notifier (Closed)

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

Description

[Sync] Pass the correct set of enabled types to the sync notifier This fixes a bug where only the newly-configured types were being passed to the sync notifier to enable. In the common case, there is an empty configuration cycle, which effectively causes notifications to turn off. For now, read the set of enabled types from the registrar and use that. Add unit test expectations to catch the bug above. Move updating of the notification bridge's data types to the sync thread. Also clean up its unit tests a bit. BUG=138595 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148188

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -97 lines) Patch
M chrome/browser/sync/glue/chrome_sync_notification_bridge.h View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.cc View 5 chunks +19 lines, -14 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc View 6 chunks +52 lines, -33 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 9 chunks +27 lines, -36 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host_unittest.cc View 1 19 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/sync/test_profile_sync_service.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 2 chunks +7 lines, -0 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+zea for review +dcheng, +rlarocque FYI
8 years, 5 months ago (2012-07-24 03:27:54 UTC) #1
akalin
On 2012/07/24 03:27:54, akalin wrote: > +zea for review > > +dcheng, +rlarocque FYI Ping! ...
8 years, 5 months ago (2012-07-24 17:33:51 UTC) #2
Nicolas Zea
LGTM http://codereview.chromium.org/10817023/diff/1/chrome/browser/sync/glue/sync_backend_host_unittest.cc File chrome/browser/sync/glue/sync_backend_host_unittest.cc (right): http://codereview.chromium.org/10817023/diff/1/chrome/browser/sync/glue/sync_backend_host_unittest.cc#newcode249 chrome/browser/sync/glue/sync_backend_host_unittest.cc:249: syncer::ModelTypeSetToString(fake_manager_->GetAndResetEnabledTypes()), .equals instead of string matching? http://codereview.chromium.org/10817023/diff/1/chrome/browser/sync/test_profile_sync_service.cc File ...
8 years, 5 months ago (2012-07-24 18:09:31 UTC) #3
akalin
committing http://codereview.chromium.org/10817023/diff/1/chrome/browser/sync/glue/sync_backend_host_unittest.cc File chrome/browser/sync/glue/sync_backend_host_unittest.cc (right): http://codereview.chromium.org/10817023/diff/1/chrome/browser/sync/glue/sync_backend_host_unittest.cc#newcode249 chrome/browser/sync/glue/sync_backend_host_unittest.cc:249: syncer::ModelTypeSetToString(fake_manager_->GetAndResetEnabledTypes()), On 2012/07/24 18:09:31, nzea wrote: > .equals ...
8 years, 5 months ago (2012-07-24 18:59:39 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/10817023/6002
8 years, 5 months ago (2012-07-24 18:59:57 UTC) #5
commit-bot: I haz the power
8 years, 5 months ago (2012-07-24 20:39:48 UTC) #6
Change committed as 148188

Powered by Google App Engine
This is Rietveld 408576698