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

Issue 7104088: Changed typed url sync to no longer modify typed/visit_count. (Closed)

Created:
9 years, 6 months ago by Andrew T Wilson (Slow)
Modified:
9 years, 6 months ago
Reviewers:
Nicolas Zea, sky
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, brettw-cc_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Changed typed url sync to no longer modify typed/visit_count. The sync code now relies on the underlying history code to keep typed/visit_count up-to-date. This requires us to sync across the transition type for each visit. Since we want to set the transition type appropriately for every visit, this CL also changes AddPagesWithDetails() to no longer automatically create a visit with the last_visit timestamp if the VisitSource is SYNCED. For convenience, it still creates a visit for the other sources (browser history import). BUG=84258 TEST=run sync integration/unit tests, run typed url test cases. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=88610

Patch Set 1 #

Total comments: 20

Patch Set 2 : Updated per review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -246 lines) Patch
M chrome/browser/history/history.h View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/history/history_backend.cc View 1 2 chunks +18 lines, -14 lines 0 comments Download
M chrome/browser/history/history_backend_unittest.cc View 1 2 chunks +17 lines, -13 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.cc View 1 4 chunks +27 lines, -18 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.h View 1 3 chunks +13 lines, -11 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 10 chunks +126 lines, -133 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator_unittest.cc View 1 10 chunks +42 lines, -37 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 4 chunks +9 lines, -8 lines 0 comments Download
M chrome/browser/sync/protocol/proto_value_conversions.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/protocol/typed_url_specifics.proto View 1 chunk +14 lines, -5 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Andrew T Wilson (Slow)
Brett, can you review the changes to history (basically, just changed AddVisits() to let us ...
9 years, 6 months ago (2011-06-09 18:07:12 UTC) #1
Nicolas Zea
http://codereview.chromium.org/7104088/diff/1/chrome/browser/sync/glue/typed_url_change_processor.cc File chrome/browser/sync/glue/typed_url_change_processor.cc (right): http://codereview.chromium.org/7104088/diff/1/chrome/browser/sync/glue/typed_url_change_processor.cc#newcode239 chrome/browser/sync/glue/typed_url_change_processor.cc:239: TypedUrlModelAssociator::TypedUrlSpecificsToURLRow(typed_url, &new_url); It's kind of confusing that TypedUrlSpecificsToURLRow doesn't ...
9 years, 6 months ago (2011-06-09 19:50:39 UTC) #2
Andrew T Wilson (Slow)
Scott, looks like Brett's on vacation - do you mind taking a look at the ...
9 years, 6 months ago (2011-06-09 20:21:10 UTC) #3
sky
http://codereview.chromium.org/7104088/diff/1/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): http://codereview.chromium.org/7104088/diff/1/chrome/browser/history/history_backend.h#newcode285 chrome/browser/history/history_backend.h:285: const std::vector<std::pair< How about some typedefs for these in ...
9 years, 6 months ago (2011-06-09 20:49:00 UTC) #4
Andrew T Wilson (Slow)
Please take another look. http://codereview.chromium.org/7104088/diff/1/chrome/browser/history/history_backend.h File chrome/browser/history/history_backend.h (right): http://codereview.chromium.org/7104088/diff/1/chrome/browser/history/history_backend.h#newcode285 chrome/browser/history/history_backend.h:285: const std::vector<std::pair< On 2011/06/09 20:49:01, ...
9 years, 6 months ago (2011-06-09 22:11:36 UTC) #5
sky
LGTM
9 years, 6 months ago (2011-06-09 22:31:41 UTC) #6
Nicolas Zea
9 years, 6 months ago (2011-06-09 22:37:54 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698