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

Issue 593094: Add unique hashing to sync API. (Closed)

Created:
10 years, 10 months ago by chron_chromium.org
Modified:
9 years, 7 months ago
Reviewers:
ncarter (slow), chron
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., ncarter (slow), ben+cc_chromium.org, tim (not reviewing), idana
Visibility:
Public.

Description

Add unique hashing to sync API. TEST=included unit test BUG=35586 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39307

Patch Set 1 #

Patch Set 2 : whitespace fixes #

Total comments: 10

Patch Set 3 : New unit test, review fixes. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -25 lines) Patch
M chrome/browser/sync/engine/syncapi.h View 1 2 5 chunks +15 lines, -3 lines 2 comments Download
M chrome/browser/sync/engine/syncapi.cc View 1 2 7 chunks +32 lines, -6 lines 0 comments Download
M chrome/browser/sync/engine/syncapi_unittest.cc View 1 2 6 chunks +79 lines, -6 lines 2 comments Download
M chrome/browser/sync/glue/preference_model_associator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 1 chunk +0 lines, -9 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
chron_chromium.org
10 years, 10 months ago (2010-02-12 23:36:00 UTC) #1
chron_chromium.org
10 years, 10 months ago (2010-02-12 23:37:31 UTC) #2
ncarter (slow)
Thanks for getting this together so quickly. http://codereview.chromium.org/593094/diff/1007/8 File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/593094/diff/1007/8#newcode396 chrome/browser/sync/engine/syncapi.cc:396: DCHECK(model_type > ...
10 years, 10 months ago (2010-02-13 18:11:11 UTC) #3
chron_chromium.org
I've added additional unit tests and changed the hash format. http://codereview.chromium.org/593094/diff/1007/8 File chrome/browser/sync/engine/syncapi.cc (right): http://codereview.chromium.org/593094/diff/1007/8#newcode396 ...
10 years, 10 months ago (2010-02-17 01:40:10 UTC) #4
ncarter (slow)
LGTM http://codereview.chromium.org/593094/diff/5002/5004 File chrome/browser/sync/engine/syncapi.h (right): http://codereview.chromium.org/593094/diff/5002/5004#newcode52 chrome/browser/sync/engine/syncapi.h:52: no blank line. http://codereview.chromium.org/593094/diff/5002/5005 File chrome/browser/sync/engine/syncapi_unittest.cc (right): http://codereview.chromium.org/593094/diff/5002/5005#newcode83 ...
10 years, 10 months ago (2010-02-18 01:05:40 UTC) #5
chron
10 years, 10 months ago (2010-02-18 01:09:32 UTC) #6
http://codereview.chromium.org/593094/diff/5002/5004
File chrome/browser/sync/engine/syncapi.h (right):

http://codereview.chromium.org/593094/diff/5002/5004#newcode52
chrome/browser/sync/engine/syncapi.h:52: 
On 2010/02/18 01:05:40, nick wrote:
> no blank line.

Done.

http://codereview.chromium.org/593094/diff/5002/5005
File chrome/browser/sync/engine/syncapi_unittest.cc (right):

http://codereview.chromium.org/593094/diff/5002/5005#newcode83
chrome/browser/sync/engine/syncapi_unittest.cc:83: std::string HashToHex(const
std::string& hash) {
On 2010/02/18 01:05:40, nick wrote:
> De-indent.

Done.

http://codereview.chromium.org/593094/diff/5002/5007
File chrome/browser/sync/syncable/syncable.cc (right):

http://codereview.chromium.org/593094/diff/5002/5007#newcode1078
chrome/browser/sync/syncable/syncable.cc:1078: 
These dchecks weren't really valid since we call GetModelType in different
places now. One such case is if we call it on a local item that we haven't
stuffed any data into, it interferes with the other assert that I think is more
useful. Can't "assert not set" if this is the case.

Powered by Google App Engine
This is Rietveld 408576698