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

Issue 8586014: [Sync] Replace uses of ObserverListThreadSafe with WeakHandles (Closed)

Created:
9 years, 1 month ago by akalin
Modified:
9 years, 1 month ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

[Sync] Replace uses of ObserverListThreadSafe with WeakHandles ObserverListThreadSafe was overkill since there was only two threads involved, and only one observer. Add MessageLoop member variables to various test classes that need it (ObserverListThreadSafe had a hack that made it unnecessary before.) BUG=103732 TEST=Start with a clean profile and set up sync. about:profiler shouldn't show ObserverListThreadSafe::Notify calls with sync threads anymore. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110836

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Patch Set 3 : Remove unnecessary check #

Patch Set 4 : Sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+303 lines, -181 lines) Patch
M chrome/browser/sync/engine/syncer_proto_util_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/internal_api/debug_info_event_listener.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 13 chunks +19 lines, -41 lines 0 comments Download
M chrome/browser/sync/internal_api/syncapi_unittest.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/js/js_mutation_event_observer.h View 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/js/js_mutation_event_observer.cc View 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/sync/notifier/non_blocking_invalidation_notifier.h View 3 chunks +21 lines, -3 lines 0 comments Download
M chrome/browser/sync/notifier/non_blocking_invalidation_notifier.cc View 8 chunks +48 lines, -29 lines 0 comments Download
M chrome/browser/sync/notifier/non_blocking_invalidation_notifier_unittest.cc View 1 chunk +19 lines, -8 lines 0 comments Download
M chrome/browser/sync/sessions/sync_session_unittest.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/directory_manager.h View 3 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/sync/syncable/directory_manager.cc View 2 chunks +16 lines, -8 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.h View 1 7 chunks +27 lines, -19 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 1 9 chunks +32 lines, -27 lines 0 comments Download
M chrome/browser/sync/syncable/syncable_mock.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/sync/syncable/syncable_unittest.cc View 24 chunks +37 lines, -33 lines 0 comments Download
M chrome/browser/sync/test/engine/syncer_command_test.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/engine/test_directory_setter_upper.cc View 4 chunks +6 lines, -3 lines 0 comments Download
A chrome/browser/sync/test/null_transaction_observer.h View 1 chunk +21 lines, -0 lines 0 comments Download
A chrome/browser/sync/test/null_transaction_observer.cc View 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
akalin
+zea for review
9 years, 1 month ago (2011-11-17 02:27:47 UTC) #1
Nicolas Zea
http://codereview.chromium.org/8586014/diff/1/chrome/browser/sync/engine/syncer_proto_util_unittest.cc File chrome/browser/sync/engine/syncer_proto_util_unittest.cc (right): http://codereview.chromium.org/8586014/diff/1/chrome/browser/sync/engine/syncer_proto_util_unittest.cc#newcode141 chrome/browser/sync/engine/syncer_proto_util_unittest.cc:141: MessageLoop message_loop_; What is this used by? http://codereview.chromium.org/8586014/diff/1/chrome/browser/sync/internal_api/debug_info_event_listener.h File ...
9 years, 1 month ago (2011-11-17 21:35:45 UTC) #2
akalin
Addressed all comments, ptal. http://codereview.chromium.org/8586014/diff/1/chrome/browser/sync/engine/syncer_proto_util_unittest.cc File chrome/browser/sync/engine/syncer_proto_util_unittest.cc (right): http://codereview.chromium.org/8586014/diff/1/chrome/browser/sync/engine/syncer_proto_util_unittest.cc#newcode141 chrome/browser/sync/engine/syncer_proto_util_unittest.cc:141: MessageLoop message_loop_; On 2011/11/17 21:35:45, ...
9 years, 1 month ago (2011-11-18 00:04:32 UTC) #3
Nicolas Zea
lgtm
9 years, 1 month ago (2011-11-18 00:33:34 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/8586014/17001
9 years, 1 month ago (2011-11-19 03:55:27 UTC) #5
commit-bot: I haz the power
Try job failure for 8586014-17001 (retry) on linux_rel for step "ui_tests". It's a second try, ...
9 years, 1 month ago (2011-11-19 04:50:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/8586014/17001
9 years, 1 month ago (2011-11-19 08:22:02 UTC) #7
commit-bot: I haz the power
9 years, 1 month ago (2011-11-19 09:31:34 UTC) #8
Change committed as 110836

Powered by Google App Engine
This is Rietveld 408576698