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

Issue 10808040: [Sync] Avoid ObserverListThreadSafe in ChromeSyncNotificationBridge (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), akalin, tim (not reviewing), dcheng
Visibility:
Public.

Description

[Sync] Avoid ObserverListThreadSafe in ChromeSyncNotificationBridge Instead just use an inner ref-counted class, and assume the bridge will be used only on the UI and sync thread. This is to make refactoring the sync-specific parts out of SyncNotifier{,Observer} easier. BUG=124149 TEST= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=147717

Patch Set 1 #

Patch Set 2 : Fix test errors #

Total comments: 4

Patch Set 3 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -161 lines) Patch
M chrome/browser/sync/glue/bridged_sync_notifier_unittest.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.h View 3 chunks +22 lines, -14 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge.cc View 5 chunks +78 lines, -9 lines 0 comments Download
M chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc View 1 2 6 chunks +111 lines, -126 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 7 chunks +8 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
akalin
+zea for review +dcheng FYI
8 years, 5 months ago (2012-07-19 22:48:32 UTC) #1
akalin
Fixed integration test failures.
8 years, 5 months ago (2012-07-20 18:33:06 UTC) #2
Nicolas Zea
http://codereview.chromium.org/10808040/diff/6001/chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc File chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc (right): http://codereview.chromium.org/10808040/diff/6001/chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc#newcode104 chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc:104: : ui_thread_(BrowserThread::UI, &ui_loop_), are ui thread and ui loop ...
8 years, 5 months ago (2012-07-20 20:01:36 UTC) #3
akalin
PTAL http://codereview.chromium.org/10808040/diff/6001/chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc File chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc (right): http://codereview.chromium.org/10808040/diff/6001/chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc#newcode104 chrome/browser/sync/glue/chrome_sync_notification_bridge_unittest.cc:104: : ui_thread_(BrowserThread::UI, &ui_loop_), On 2012/07/20 20:01:37, nzea wrote: ...
8 years, 5 months ago (2012-07-20 20:19:54 UTC) #4
Nicolas Zea
LGTM
8 years, 5 months ago (2012-07-20 20:32:49 UTC) #5
commit-bot: I haz the power
8 years, 5 months ago (2012-07-20 20:34:02 UTC) #6

Powered by Google App Engine
This is Rietveld 408576698