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

Issue 6546009: [Sync] Fix bug in JsSyncManagerObserver leading to erroneous change info. (Closed)

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

Description

[Sync] Fix bug in JsSyncManagerObserver leading to erroneous change info. The bug is that the changes in an onChangesApplied() event is set to n copies of the first change. Fix similar bug in test code (which is why this bug wasn't caught). BUG=69500 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75373

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -11 lines) Patch
M chrome/browser/sync/js_sync_manager_observer.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/js_sync_manager_observer_unittest.cc View 1 3 chunks +14 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
akalin
+nzea for review
9 years, 10 months ago (2011-02-18 05:03:29 UTC) #1
Nicolas Zea
LGTM with a comment http://codereview.chromium.org/6546009/diff/1/chrome/browser/sync/js_sync_manager_observer_unittest.cc File chrome/browser/sync/js_sync_manager_observer_unittest.cc (right): http://codereview.chromium.org/6546009/diff/1/chrome/browser/sync/js_sync_manager_observer_unittest.cc#newcode226 chrome/browser/sync/js_sync_manager_observer_unittest.cc:226: // Fire OnChangesApplied() for each ...
9 years, 10 months ago (2011-02-18 06:09:52 UTC) #2
akalin
Checking in after trybots pass. On 2011/02/18 06:09:52, nzea wrote: > LGTM with a comment ...
9 years, 10 months ago (2011-02-18 08:12:18 UTC) #3
akalin
9 years, 10 months ago (2011-02-18 08:12:29 UTC) #4
http://codereview.chromium.org/6546009/diff/1/chrome/browser/sync/js_sync_man...
File chrome/browser/sync/js_sync_manager_observer_unittest.cc (right):

http://codereview.chromium.org/6546009/diff/1/chrome/browser/sync/js_sync_man...
chrome/browser/sync/js_sync_manager_observer_unittest.cc:226: // Fire
OnChangesApplied() for each data type.
On 2011/02/18 06:09:52, nzea wrote:
> A comment here about the fact that you're building a list of changes
_starting_
> with that specified datatype and including all datatypes higher than it would
be
> useful. It took me a bit to figure out why the expectations involved multiple
> datatypes (since OnChangesApplied refers to only one datatype).

Added comment, but above the expectations too since it involves that too.

Powered by Google App Engine
This is Rietveld 408576698