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

Issue 10826309: Rewrite TemplateURLService's SyncableService implmentation to avoid sending ACTION_DELETEs to Sync. (Closed)

Created:
8 years, 4 months ago by SteveT
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Rewrite TemplateURLService's SyncableService implmentation to avoid sending ACTION_DELETEs to Sync. This rewrite should make MergeDataAndStartSyncing more robust, resulting in fewer underscore dupes and hopefully fewer SyncErrors, as we are more careful about when we send ACTION_UPDATEs during initial merge. Update unit tests to reflect these changes. BUG=140732 TEST=Sync two clients with different search engine entries and ensure that they end up in sync. Try to add, update, or remove entries from one client and expect the same to occur on the other. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151569

Patch Set 1 #

Patch Set 2 : Fix memory leak in test. #

Total comments: 2

Patch Set 3 : pkasting nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -502 lines) Patch
M chrome/browser/search_engines/template_url_service.h View 2 chunks +42 lines, -51 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 6 chunks +142 lines, -157 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 16 chunks +264 lines, -294 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
SteveT
Hey Nick - I had to revert my patch from yesterday due to a leak ...
8 years, 4 months ago (2012-08-14 16:58:18 UTC) #1
Nicolas Zea
lgtm
8 years, 4 months ago (2012-08-14 17:07:44 UTC) #2
Peter Kasting
https://chromiumcodereview.appspot.com/10826309/diff/2001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://chromiumcodereview.appspot.com/10826309/diff/2001/chrome/browser/search_engines/template_url_service.cc#newcode202 chrome/browser/search_engines/template_url_service.cc:202: return (sync_data.find(turl->sync_guid()) != sync_data.end()); Nit: You can use !!sync_data.count(turl->sync_guid()) ...
8 years, 4 months ago (2012-08-14 17:47:06 UTC) #3
SteveT
Addressed Peter's nit. Valgrind is looking better (my failure is gone, though there seems to ...
8 years, 4 months ago (2012-08-14 19:15:10 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10826309/4002
8 years, 4 months ago (2012-08-14 19:15:23 UTC) #5
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 21:32:53 UTC) #6
Change committed as 151569

Powered by Google App Engine
This is Rietveld 408576698