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

Issue 8289026: Correctly handle expired and truncated visits in typed url sync (Closed)

Created:
9 years, 2 months ago by Andrew T Wilson (Slow)
Modified:
9 years, 2 months ago
CC:
chromium-reviews, Raghu Simha, ncarter (slow), tim (not reviewing), idana
Visibility:
Public.

Description

Changed the TypedUrlModelAssociator to correctly merge changes between the sync and history DB: 1) Now no longer resurrects expired visits (if a visit in the sync DB is older than any visit in the history DB, we ignore it). 2) Does not treat "visit list truncation" as if the truncated visits were deleted (so items omitted from the sync DB because we overflow the 100-visit limit will not also get removed from the history DB). BUG=101033 TEST=Added new unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106854

Patch Set 1 #

Patch Set 2 : Uploading checkpoint and for running trybots. #

Patch Set 3 : Removed a bunch of debug statements/unrelated test code #

Total comments: 1

Patch Set 4 : Cleaned up whitespace issue #

Total comments: 6

Patch Set 5 : Review comments. #

Patch Set 6 : Fixed compilation error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -18 lines) Patch
M chrome/browser/sync/glue/sync_backend_registrar.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 2 3 4 5 5 chunks +20 lines, -6 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator_unittest.cc View 1 4 chunks +56 lines, -9 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Andrew T Wilson (Slow)
http://codereview.chromium.org/8289026/diff/4001/chrome/browser/sync/glue/sync_backend_registrar.cc File chrome/browser/sync/glue/sync_backend_registrar.cc (right): http://codereview.chromium.org/8289026/diff/4001/chrome/browser/sync/glue/sync_backend_registrar.cc#newcode126 chrome/browser/sync/glue/sync_backend_registrar.cc:126: LOG(WARNING) << "No password worker -- removing PASSWORDS"; This ...
9 years, 2 months ago (2011-10-21 13:14:05 UTC) #1
Andrew T Wilson (Slow)
PTAL
9 years, 2 months ago (2011-10-21 16:58:05 UTC) #2
Nicolas Zea
LGTM with nits http://codereview.chromium.org/8289026/diff/6001/chrome/browser/sync/glue/typed_url_change_processor.cc File chrome/browser/sync/glue/typed_url_change_processor.cc (right): http://codereview.chromium.org/8289026/diff/6001/chrome/browser/sync/glue/typed_url_change_processor.cc#newcode99 chrome/browser/sync/glue/typed_url_change_processor.cc:99: DCHECK(url.typed_count() > 0); DCHECK_GT http://codereview.chromium.org/8289026/diff/6001/chrome/browser/sync/glue/typed_url_model_associator.cc File ...
9 years, 2 months ago (2011-10-21 22:07:28 UTC) #3
Andrew T Wilson (Slow)
http://codereview.chromium.org/8289026/diff/6001/chrome/browser/sync/glue/typed_url_change_processor.cc File chrome/browser/sync/glue/typed_url_change_processor.cc (right): http://codereview.chromium.org/8289026/diff/6001/chrome/browser/sync/glue/typed_url_change_processor.cc#newcode99 chrome/browser/sync/glue/typed_url_change_processor.cc:99: DCHECK(url.typed_count() > 0); On 2011/10/21 22:07:29, nzea wrote: > ...
9 years, 2 months ago (2011-10-21 22:51:05 UTC) #4
commit-bot: I haz the power
9 years, 2 months ago (2011-10-22 07:31:36 UTC) #5

Powered by Google App Engine
This is Rietveld 408576698