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

Issue 8414043: Refactored TypedUrlChangeProcessor to treat ADD and UPDATE similarly. (Closed)

Created:
9 years, 1 month ago by Andrew T Wilson (Slow)
Modified:
9 years, 1 month ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

Refactored TypedUrlChangeProcessor to treat ADD and UPDATE similarly. Updated TypedUrlChangeProcessor to handle ADDs and UPDATEs in the sync DB identically. Also removed our code that explicitly sets the title in the history DB as that should not be necessary (it's already set by UpdateURLRow). Finally, removed our code that was setting last_visit_time since that is also updated automatically by the history code when we add/remove visits. We still set it when we initially add the URL to the DB, but that's only because the history code requires it - we technically don't need to since we always manually add visits immediately afterward. BUG=101633 TEST=existing tests suffice Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108188

Patch Set 1 #

Patch Set 2 : Fixed unit_test compilation error. #

Patch Set 3 : Now set the page title in the integration test to ensure it is synced. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -109 lines) Patch
M chrome/browser/sync/glue/typed_url_change_processor.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync/glue/typed_url_change_processor.cc View 4 chunks +16 lines, -64 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.h View 2 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 2 10 chunks +21 lines, -26 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator_unittest.cc View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/typed_urls_helper.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Andrew T Wilson (Slow)
Please take a look. The core of this change is that TypedUrl UPDATE/ADD refactoring you ...
9 years, 1 month ago (2011-11-01 00:55:59 UTC) #1
Nicolas Zea
lgtm
9 years, 1 month ago (2011-11-01 19:07:26 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/atwilson@chromium.org/8414043/3006
9 years, 1 month ago (2011-11-01 21:58:13 UTC) #3
commit-bot: I haz the power
9 years, 1 month ago (2011-11-01 23:07:32 UTC) #4
Change committed as 108188

Powered by Google App Engine
This is Rietveld 408576698