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

Issue 7731002: sync: make ServerConnectionManager explicitly NonThreadSafe (Closed)

Created:
9 years, 4 months ago by tim (not reviewing)
Modified:
9 years, 4 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

sync: make ServerConnectionManager explicitly NonThreadSafe This is now possible because there's no core thread to contend with -- the SCM is only used from the sync thread. BUG=19757, 93829 TEST=sync_unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98486

Patch Set 1 : initial #

Total comments: 14

Patch Set 2 : review #

Patch Set 3 : make watcher NonThreadSafe #

Patch Set 4 : dcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -90 lines) Patch
M chrome/browser/sync/engine/net/server_connection_manager.h View 1 2 11 chunks +13 lines, -42 lines 0 comments Download
M chrome/browser/sync/engine/net/server_connection_manager.cc View 1 8 chunks +21 lines, -44 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/sync/engine/mock_connection_manager.cc View 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
tim (not reviewing)
9 years, 4 months ago (2011-08-24 19:38:56 UTC) #1
lipalani1
Here are the comments. But I feel comfortable with a LGTM assuming you are ok ...
9 years, 4 months ago (2011-08-24 20:35:28 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/7731002/diff/6/chrome/browser/sync/engine/net/server_connection_manager.cc File chrome/browser/sync/engine/net/server_connection_manager.cc (right): http://codereview.chromium.org/7731002/diff/6/chrome/browser/sync/engine/net/server_connection_manager.cc#newcode140 chrome/browser/sync/engine/net/server_connection_manager.cc:140: if (conn_mgr_->server_status_ != response_->server_status) { On 2011/08/24 20:35:28, lipalani1 ...
9 years, 4 months ago (2011-08-25 16:21:46 UTC) #3
lipalani
Agree on all the points. For check vs dcheck dcheck is fine as it is ...
9 years, 4 months ago (2011-08-25 18:35:54 UTC) #4
tim (not reviewing)
Made ScopedServerStatusWatcher inherit NonThreadSafe, which adds thread checking on destruction. Sent to trybots.
9 years, 4 months ago (2011-08-25 18:45:00 UTC) #5
commit-bot: I haz the power
9 years, 4 months ago (2011-08-26 21:02:39 UTC) #6
Change committed as 98486

Powered by Google App Engine
This is Rietveld 408576698