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

Issue 8704007: Protector adds the default prepopulated engine if it was removed. (Closed)

Created:
9 years ago by Ivan Korotkov
Modified:
9 years ago
Reviewers:
whywhat, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Protector adds the default prepopulated engine if it was removed. *) If the backup default search provider was deleted from the keywords, it is taken from the prepopulated data array. *) If a search provider with same URLs already exists, it is updated; otherwise, the prepopulated SP is added. BUG=105423 TEST=TemplateURLServiceTest.*; For Protector: manual with sqlite3 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=112661

Patch Set 1 #

Patch Set 2 : Added histograms for missing/fallback DSP. #

Total comments: 10

Patch Set 3 : Fixes and test for TemplateURLService::Update #

Patch Set 4 : Exact match of search providers instead of Update. #

Patch Set 5 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -22 lines) Patch
M chrome/browser/protector/default_search_provider_change.cc View 1 2 3 7 chunks +107 lines, -22 lines 0 comments Download
M chrome/browser/protector/histograms.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/protector/histograms.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Ivan Korotkov
PTAL
9 years ago (2011-11-28 11:46:42 UTC) #1
sky
http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc File chrome/browser/protector/default_search_provider_change.cc (right): http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc#newcode41 chrome/browser/protector/default_search_provider_change.cc:41: int id_; int -> TemplateURLID http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc#newcode44 chrome/browser/protector/default_search_provider_change.cc:44: // Matcher ...
9 years ago (2011-11-28 17:03:11 UTC) #2
Ivan Korotkov
Updated, with a couple of checks: TemplateURL.last_modified() says that it's the time it was last ...
9 years ago (2011-11-29 10:13:47 UTC) #3
sky
http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc File chrome/browser/protector/default_search_provider_change.cc (right): http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc#newcode305 chrome/browser/protector/default_search_provider_change.cc:305: TemplateURLService::TemplateURLVector::const_iterator i = This worries me. What are we ...
9 years ago (2011-11-29 16:44:59 UTC) #4
Ivan Korotkov
http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc File chrome/browser/protector/default_search_provider_change.cc (right): http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc#newcode305 chrome/browser/protector/default_search_provider_change.cc:305: TemplateURLService::TemplateURLVector::const_iterator i = There are examples of malware that ...
9 years ago (2011-11-29 19:10:14 UTC) #5
sky
On Tue, Nov 29, 2011 at 11:10 AM, <ivankr@chromium.org> wrote: > > http://codereview.chromium.org/8704007/diff/2001/chrome/browser/protector/default_search_provider_change.cc > File ...
9 years ago (2011-11-29 21:45:43 UTC) #6
Ivan Korotkov
Agreed, updated.
9 years ago (2011-11-30 18:01:55 UTC) #7
sky
LGTM
9 years ago (2011-11-30 21:44:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ivankr@chromium.org/8704007/12001
9 years ago (2011-11-30 21:50:32 UTC) #9
commit-bot: I haz the power
9 years ago (2011-11-30 23:37:03 UTC) #10
The commit queue went berserk retrying too often for a
seemingly flaky test. Builder is linux_rel, revision is 112329, job name
was 8704007-12001 (retry) (retry) (previous was lost) (retry).

Powered by Google App Engine
This is Rietveld 408576698