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

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

Created:
8 years, 5 months ago by SteveT
Modified:
8 years, 4 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, Nicolas Zea
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. Update unit tests to reflect these changes. BUG=140732 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151391

Patch Set 1 : Initial draft #

Total comments: 23

Patch Set 2 : Addressed Nick's first batch of comments #

Patch Set 3 : Addressed Nick's second set of comments #

Patch Set 4 : Set the SyncedDSP pref when there is no pending DSP #

Patch Set 5 : Cleaned out old methods and corrected unittests #

Patch Set 6 : Cleanup new code #

Total comments: 19

Patch Set 7 : Initial round of new tests #

Patch Set 8 : merge to TOT #

Patch Set 9 : Addressed zea's initial comments #

Total comments: 17

Patch Set 10 : Added MergeInSyncTemplateURL test #

Patch Set 11 : addressed zea comments round 2 #

Total comments: 10

Patch Set 12 : additional zea changes #

Total comments: 2

Patch Set 13 : comment nit #

Patch Set 14 : fix assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -502 lines) Patch
M chrome/browser/search_engines/template_url_service.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +42 lines, -51 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +144 lines, -157 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 16 chunks +264 lines, -294 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
SteveT
Hey Nick - giving you a preview of my rewrite. Note that this is not ...
8 years, 5 months ago (2012-07-23 15:37:28 UTC) #1
Nicolas Zea
Some initial higher-level comments. https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc#newcode1156 chrome/browser/search_engines/template_url_service.cc:1156: MergeInSyncTemplateURL(sync_turl.get(), sync_data_map, &new_changes, given that ...
8 years, 5 months ago (2012-07-23 20:20:52 UTC) #2
SteveT
This latest patch addresses the comments you had that required action. Let me know if ...
8 years, 5 months ago (2012-07-23 21:07:00 UTC) #3
Nicolas Zea
https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc#newcode1156 chrome/browser/search_engines/template_url_service.cc:1156: MergeInSyncTemplateURL(sync_turl.get(), sync_data_map, &new_changes, On 2012/07/23 21:07:00, SteveT wrote: > ...
8 years, 5 months ago (2012-07-23 22:14:44 UTC) #4
SteveT
More discussion inline. https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc#newcode1156 chrome/browser/search_engines/template_url_service.cc:1156: MergeInSyncTemplateURL(sync_turl.get(), sync_data_map, &new_changes, Actually yeah, MergeInSyncTemplateURL ...
8 years, 5 months ago (2012-07-24 14:46:30 UTC) #5
Nicolas Zea
Rest of logic LG. https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc#newcode2355 chrome/browser/search_engines/template_url_service.cc:2355: // Synced GUID pref with ...
8 years, 5 months ago (2012-07-24 19:31:47 UTC) #6
SteveT
Response inline. Let me know if this latest change sounds good. https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): ...
8 years, 5 months ago (2012-07-24 21:51:18 UTC) #7
Nicolas Zea
New logic LG, let me know when it's ready for the full review. https://chromiumcodereview.appspot.com/10806065/diff/2001/chrome/browser/search_engines/template_url_service.cc File ...
8 years, 5 months ago (2012-07-24 22:13:37 UTC) #8
SteveT
Okay, I still have to write some new unit tests for MergeInTemplateURL and the new ...
8 years, 4 months ago (2012-07-26 14:37:24 UTC) #9
Nicolas Zea
Some comments, still need to look at tests. http://codereview.chromium.org/10806065/diff/22001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): http://codereview.chromium.org/10806065/diff/22001/chrome/browser/search_engines/template_url_service.cc#newcode2310 chrome/browser/search_engines/template_url_service.cc:2310: DCHECK(applied_sync_turl->keyword() ...
8 years, 4 months ago (2012-07-28 00:27:32 UTC) #10
SteveT
I've addressed your initial comments and added my first round of tests (including bringing back ...
8 years, 4 months ago (2012-08-05 20:22:38 UTC) #11
Nicolas Zea
http://codereview.chromium.org/10806065/diff/22001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): http://codereview.chromium.org/10806065/diff/22001/chrome/browser/search_engines/template_url_service.cc#newcode2311 chrome/browser/search_engines/template_url_service.cc:2311: DCHECK(!applied_sync_turl->IsExtensionKeyword()); On 2012/08/05 20:22:39, SteveT wrote: > Hm, this ...
8 years, 4 months ago (2012-08-06 19:35:23 UTC) #12
SteveT
Addressed your comments and added a final batch of tests (see MergeInSyncTemplateURL in the unit ...
8 years, 4 months ago (2012-08-07 00:17:08 UTC) #13
Nicolas Zea
http://codereview.chromium.org/10806065/diff/22003/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc (right): http://codereview.chromium.org/10806065/diff/22003/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode1129 chrome/browser/search_engines/template_url_service_sync_unittest.cc:1129: EXPECT_EQ(processor()->change_list_size(), 2U); On 2012/08/07 00:17:09, SteveT wrote: > This ...
8 years, 4 months ago (2012-08-07 17:45:43 UTC) #14
SteveT
PTAL. http://codereview.chromium.org/10806065/diff/14006/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc (right): http://codereview.chromium.org/10806065/diff/14006/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode1652 chrome/browser/search_engines/template_url_service_sync_unittest.cc:1652: TemplateURL* default_turl = CreateTestTemplateURL(keyword, url, On 2012/08/07 17:45:43, ...
8 years, 4 months ago (2012-08-10 16:08:55 UTC) #15
Nicolas Zea
Nice job, LGTM! http://codereview.chromium.org/10806065/diff/22006/chrome/browser/search_engines/template_url_service_sync_unittest.cc File chrome/browser/search_engines/template_url_service_sync_unittest.cc (right): http://codereview.chromium.org/10806065/diff/22006/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode1875 chrome/browser/search_engines/template_url_service_sync_unittest.cc:1875: // added to the model, and ...
8 years, 4 months ago (2012-08-10 17:34:09 UTC) #16
SteveT
Hey, thanks for reviewing and putting up with the erratic patches - have been trying ...
8 years, 4 months ago (2012-08-10 19:07:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10806065/27004
8 years, 4 months ago (2012-08-13 21:31:33 UTC) #18
commit-bot: I haz the power
8 years, 4 months ago (2012-08-13 23:36:01 UTC) #19
Change committed as 151391

Powered by Google App Engine
This is Rietveld 408576698