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

Issue 15572002: Implemented 'Reset Search engines' feature. (Closed)

Created:
7 years, 7 months ago by vasilii
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Joao da Silva
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

New methods allow to - delete prepopulated search engines from user prefs - delete the default search engine from user prefs - reset unmanaged and non-extension URLs to prepopulated list. New unit tests: - TemplateURLPrepopulateDataTest.ClearProvidersFromPrefs - TemplateURLServiceTest.ResetNonExtensionURLs - TemplateURLServiceTest.ResetURLsWithManagedDefault BUG=235037, 244291 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202869

Patch Set 1 #

Patch Set 2 : Fixed ProfileResetterTest.* #

Patch Set 3 : Android compilation error #

Total comments: 14

Patch Set 4 : Addressed Dominic's comments #

Total comments: 45

Patch Set 5 : Peter's comments #

Patch Set 6 : Merge with trunk; load TemplateURLService explicitly #

Patch Set 7 : Minor changes #

Patch Set 8 : Reset Google search URL together with search engines #

Total comments: 12

Patch Set 9 : Merge with trunk + Peter's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+417 lines, -110 lines) Patch
M chrome/browser/profile_resetter/profile_resetter.h View 1 2 3 4 5 6 7 8 4 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter.cc View 1 2 3 4 5 6 7 3 chunks +40 lines, -4 lines 0 comments Download
M chrome/browser/profile_resetter/profile_resetter_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data.cc View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_prepopulate_data_unittest.cc View 1 2 3 4 2 chunks +47 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.h View 1 2 3 4 5 3 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/template_url_service.cc View 1 2 3 4 5 6 7 8 6 chunks +165 lines, -96 lines 0 comments Download
M chrome/browser/search_engines/template_url_service_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +77 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/util.h View 1 2 3 4 5 6 7 8 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/browser/search_engines/util.cc View 1 2 3 4 5 6 7 8 4 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
vasilii
Hello Dominic and Scott, Could you review the following: Dominic: profile_resetter.cc [+ other stuff] Scott: ...
7 years, 7 months ago (2013-05-21 17:38:30 UTC) #1
sky
sky->pkasting
7 years, 7 months ago (2013-05-21 17:46:05 UTC) #2
battre
https://codereview.chromium.org/15572002/diff/18001/chrome/browser/profile_resetter/profile_resetter_unittest.cc File chrome/browser/profile_resetter/profile_resetter_unittest.cc (left): https://codereview.chromium.org/15572002/diff/18001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#oldcode24 chrome/browser/profile_resetter/profile_resetter_unittest.cc:24: resetter_(NULL) {} I think that we should actually go ...
7 years, 7 months ago (2013-05-22 14:03:37 UTC) #3
vasilii
Done, Dominic. Peter, please review search_engines/ part. https://codereview.chromium.org/15572002/diff/18001/chrome/browser/profile_resetter/profile_resetter_unittest.cc File chrome/browser/profile_resetter/profile_resetter_unittest.cc (left): https://codereview.chromium.org/15572002/diff/18001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#oldcode24 chrome/browser/profile_resetter/profile_resetter_unittest.cc:24: resetter_(NULL) {} ...
7 years, 7 months ago (2013-05-22 18:54:08 UTC) #4
Peter Kasting
https://codereview.chromium.org/15572002/diff/31001/chrome/browser/profile_resetter/profile_resetter_unittest.cc File chrome/browser/profile_resetter/profile_resetter_unittest.cc (right): https://codereview.chromium.org/15572002/diff/31001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#newcode39 chrome/browser/profile_resetter/profile_resetter_unittest.cc:39: ProfileResetterTest() { Nit: Don't inline constructors and destructors https://codereview.chromium.org/15572002/diff/31001/chrome/browser/profile_resetter/profile_resetter_unittest.cc#newcode42 ...
7 years, 7 months ago (2013-05-22 21:22:57 UTC) #5
Joao da Silva
Thanks for the heads up, see inline. https://codereview.chromium.org/15572002/diff/31001/chrome/browser/search_engines/template_url_prepopulate_data.cc File chrome/browser/search_engines/template_url_prepopulate_data.cc (right): https://codereview.chromium.org/15572002/diff/31001/chrome/browser/search_engines/template_url_prepopulate_data.cc#newcode1207 chrome/browser/search_engines/template_url_prepopulate_data.cc:1207: prefs->ClearPref(prefs::kSearchProviderOverridesVersion); On ...
7 years, 7 months ago (2013-05-23 08:54:10 UTC) #6
Joao da Silva
https://codereview.chromium.org/15572002/diff/31001/chrome/browser/search_engines/template_url_prepopulate_data.cc File chrome/browser/search_engines/template_url_prepopulate_data.cc (right): https://codereview.chromium.org/15572002/diff/31001/chrome/browser/search_engines/template_url_prepopulate_data.cc#newcode1207 chrome/browser/search_engines/template_url_prepopulate_data.cc:1207: prefs->ClearPref(prefs::kSearchProviderOverridesVersion); On 2013/05/23 08:54:10, Joao da Silva wrote: > ...
7 years, 7 months ago (2013-05-23 09:12:50 UTC) #7
battre
LGTM @ chrome/browser/profile_resetter/*
7 years, 7 months ago (2013-05-23 16:19:14 UTC) #8
vasilii
I rely in my code on TemplateURLService has loaded. But I see that Search Engines ...
7 years, 7 months ago (2013-05-23 17:03:41 UTC) #9
Peter Kasting
On 2013/05/23 09:12:50, Joao da Silva wrote: > I wasn't looking at this from the ...
7 years, 7 months ago (2013-05-23 19:32:51 UTC) #10
Peter Kasting
On 2013/05/23 17:03:41, vasilii wrote: > I rely in my code on TemplateURLService has loaded. ...
7 years, 7 months ago (2013-05-23 19:33:11 UTC) #11
vasilii
We assume that user has uninstalled malware. Otherwise, it can tamper with settings again immediately. ...
7 years, 7 months ago (2013-05-24 14:04:53 UTC) #12
Peter Kasting
On 2013/05/24 14:04:53, vasilii wrote: > Master prefs is just a file. Therefore it's probably ...
7 years, 7 months ago (2013-05-24 18:29:55 UTC) #13
Peter Kasting
I just filed bug 244291 for another facet that should be considered for this change ...
7 years, 7 months ago (2013-05-27 22:07:40 UTC) #14
vasilii
On 2013/05/27 22:07:40, Peter Kasting wrote: > I just filed bug 244291 for another facet ...
7 years, 6 months ago (2013-05-28 14:30:35 UTC) #15
Peter Kasting
LGTM https://codereview.chromium.org/15572002/diff/31001/chrome/browser/search_engines/template_url_service.cc File chrome/browser/search_engines/template_url_service.cc (right): https://codereview.chromium.org/15572002/diff/31001/chrome/browser/search_engines/template_url_service.cc#newcode2532 chrome/browser/search_engines/template_url_service.cc:2532: default_search_provider_ = NULL; On 2013/05/23 17:03:42, vasilii wrote: ...
7 years, 6 months ago (2013-05-29 04:04:41 UTC) #16
vasilii
Thanks https://codereview.chromium.org/15572002/diff/71001/chrome/browser/profile_resetter/profile_resetter.h File chrome/browser/profile_resetter/profile_resetter.h (right): https://codereview.chromium.org/15572002/diff/71001/chrome/browser/profile_resetter/profile_resetter.h#newcode73 chrome/browser/profile_resetter/profile_resetter.h:73: // content::NotificationObserver implementation. On 2013/05/29 04:04:41, Peter Kasting ...
7 years, 6 months ago (2013-05-29 08:30:18 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vasilii@chromium.org/15572002/87001
7 years, 6 months ago (2013-05-29 08:30:45 UTC) #18
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test. Builder is ...
7 years, 6 months ago (2013-05-29 13:35:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vasilii@chromium.org/15572002/87001
7 years, 6 months ago (2013-05-29 13:48:18 UTC) #20
commit-bot: I haz the power
7 years, 6 months ago (2013-05-29 14:44:57 UTC) #21
Message was sent while issue was closed.
Change committed as 202869

Powered by Google App Engine
This is Rietveld 408576698