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

Issue 10694096: Made the deletion of the default search provider defensive in TemplateURLService. (Closed)

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

Description

Made the deletion of the default search provider defensive in TemplateURLService. Instead of allowing the Sync code to delete the DSP, we instead undelete the DSP. Here we prefer inconsistency to a far worse experience where the DSP is swapped due to a bug. Tests are updated to reflect this change in functionality. BUG=132446 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=145984

Patch Set 1 #

Patch Set 2 : init #

Total comments: 5

Patch Set 3 : typo fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -47 lines) Patch
M chrome/browser/search_engines/template_url_service.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 5 chunks +46 lines, -27 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_sync_unittest.cc View 1 6 chunks +35 lines, -18 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
SteveT
Hey Nick, Here is the defensive fix we had discussed in one SE sync fixup ...
8 years, 5 months ago (2012-07-09 20:12:35 UTC) #1
Nicolas Zea
LGTM http://codereview.chromium.org/10694096/diff/5001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): http://codereview.chromium.org/10694096/diff/5001/chrome/browser/search_engines/template_url_service.cc#newcode944 chrome/browser/search_engines/template_url_service.cc:944: // unexpected swapped to something else. The user ...
8 years, 5 months ago (2012-07-10 17:07:47 UTC) #2
SteveT
Will commit once you've responded to the one question inline. http://codereview.chromium.org/10694096/diff/5001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): http://codereview.chromium.org/10694096/diff/5001/chrome/browser/search_engines/template_url_service.cc#newcode944 ...
8 years, 5 months ago (2012-07-10 17:58:35 UTC) #3
Nicolas Zea
http://codereview.chromium.org/10694096/diff/5001/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/10694096/diff/5001/chrome/browser/search_engines/template_url_service_sync_unittest.cc#newcode1678 chrome/browser/search_engines/template_url_service_sync_unittest.cc:1678: undelete.sync_data().GetSpecifics().search_engine().keyword()); On 2012/07/10 17:58:35, SteveT wrote: > On 2012/07/10 ...
8 years, 5 months ago (2012-07-10 19:10:12 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/10694096/15001
8 years, 5 months ago (2012-07-10 19:57:13 UTC) #5
commit-bot: I haz the power
Try job failure for 10694096-15001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-10 21:50:20 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/stevet@chromium.org/10694096/15001
8 years, 5 months ago (2012-07-10 21:52:35 UTC) #7
commit-bot: I haz the power
Change committed as 145984
8 years, 5 months ago (2012-07-10 23:17:59 UTC) #8
Peter Kasting
Hey, can we add some histogram or other form of data collection to see how ...
8 years, 5 months ago (2012-07-11 00:36:14 UTC) #9
SteveT
8 years, 5 months ago (2012-07-11 13:11:28 UTC) #10
We recently added (just before this patch) a new Histogram that counts calls to
FIrstPotentialDefaultEngine. (http://codereview.chromium.org/10701103/)

This includes one entry point where FIrstPotentialDefaultEngine is called during
a sync cycle (ie - ProcessSyncChanges or MergeDataAndStartSyncing).

If you don't think that's well correlated enough, we could add something to
track calls to this specific bit of code that performs the undelete.

Powered by Google App Engine
This is Rietveld 408576698