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

Issue 1361002: Scope the WriteTransactions during model association so that we don't lock the UI thread (Closed)

Created:
10 years, 9 months ago by Zachary Kuznia
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, ncarter (slow), ben+cc_chromium.org, tim (not reviewing), idana
Visibility:
Public.

Description

Scope the WriteTransactions during model association so that we don't lock the UI thread BUG=34206 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=42708

Patch Set 1 #

Total comments: 7

Patch Set 2 : Added comments, fixed a typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -136 lines) Patch
M chrome/browser/sync/glue/autofill_model_associator.cc View 1 1 chunk +75 lines, -68 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 1 chunk +75 lines, -68 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Zachary Kuznia
10 years, 9 months ago (2010-03-25 23:24:16 UTC) #1
tim (not reviewing)
LGTM with a few comments http://codereview.chromium.org/1361002/diff/1/2 File chrome/browser/sync/glue/autofill_model_associator.cc (right): http://codereview.chromium.org/1361002/diff/1/2#newcode131 chrome/browser/sync/glue/autofill_model_associator.cc:131: sync_child_id = sync_child_node.GetSuccessorId(); holy ...
10 years, 9 months ago (2010-03-25 23:37:19 UTC) #2
Zachary Kuznia
10 years, 9 months ago (2010-03-25 23:51:04 UTC) #3
http://codereview.chromium.org/1361002/diff/1/2
File chrome/browser/sync/glue/autofill_model_associator.cc (right):

http://codereview.chromium.org/1361002/diff/1/2#newcode134
chrome/browser/sync/glue/autofill_model_associator.cc:134: 
On 2010/03/25 23:37:19, timsteele wrote:
> maybe add a comment here since this is subtle: the syncer thread is paused
> during model association, so the Syncer is not writing to the sync DB, and
since
> we're on the DB thread nothing can be written to the autofill db before us,
> either.

Done.

http://codereview.chromium.org/1361002/diff/1/3
File chrome/browser/sync/glue/typed_url_change_processor.cc (right):

http://codereview.chromium.org/1361002/diff/1/3#newcode65
chrome/browser/sync/glue/typed_url_change_processor.cc:65: // TODO(sync): Get
visists without holding the write transaction.
On 2010/03/25 23:37:19, timsteele wrote:
> ubernit- visits, and please reference the bug#.

Done.

http://codereview.chromium.org/1361002/diff/1/4
File chrome/browser/sync/glue/typed_url_model_associator.cc (right):

http://codereview.chromium.org/1361002/diff/1/4#newcode134
chrome/browser/sync/glue/typed_url_model_associator.cc:134: 
On 2010/03/25 23:37:19, timsteele wrote:
> similar comment to the autofill one here would be handy.

Done.

Powered by Google App Engine
This is Rietveld 408576698