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

Issue 2598033004: Remove old default search preferences. (Closed)

Created:
3 years, 12 months ago by Alexander Yashkin
Modified:
3 years, 11 months ago
CC:
asvitkine+watch_chromium.org, blumberg, chromium-reviews, Georges Khalil, pkl (ping after 24h if needed), sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove old default search preferences. After https://bugs.chromium.org/p/chromium/issues/detail?id=365762 chromium code support two sets of preferences for default search - obsolete and new. Old preferences are migrated to new prefs on start since M36. Its time to delete old prefs set and migration logic. BUG=676801 R=pkasting@chromium.org,gab@chromium.org Review-Url: https://codereview.chromium.org/2598033004 Cr-Commit-Position: refs/heads/master@{#442569} Committed: https://chromium.googlesource.com/chromium/src/+/1be376e34def3865b168d419e415ee4b6df63f6e

Patch Set 1 #

Patch Set 2 : Updated histograms.xml #

Total comments: 9

Patch Set 3 : Fixed after review, round 1 #

Patch Set 4 : Fixed after review, round 1 #

Total comments: 8

Patch Set 5 : Fixed after review, added value type checks for policies, added unittest #

Total comments: 18

Patch Set 6 : Fixed after review, round 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -720 lines) Patch
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/prefs/tracked/pref_hash_browsertest.cc View 1 chunk +0 lines, -12 lines 0 comments Download
M components/search_engines/BUILD.gn View 1 2 3 4 5 2 chunks +0 lines, -3 lines 0 comments Download
M components/search_engines/default_search_policy_handler.h View 1 2 3 4 5 3 chunks +2 lines, -20 lines 0 comments Download
M components/search_engines/default_search_policy_handler.cc View 1 2 3 4 5 7 chunks +20 lines, -108 lines 0 comments Download
M components/search_engines/default_search_policy_handler_unittest.cc View 1 2 3 4 5 2 chunks +47 lines, -0 lines 0 comments Download
D components/search_engines/default_search_pref_migration.h View 1 chunk +0 lines, -17 lines 0 comments Download
D components/search_engines/default_search_pref_migration.cc View 1 chunk +0 lines, -169 lines 0 comments Download
D components/search_engines/default_search_pref_migration_unittest.cc View 1 chunk +0 lines, -234 lines 0 comments Download
M components/search_engines/search_engines_pref_names.h View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
M components/search_engines/search_engines_pref_names.cc View 1 2 1 chunk +0 lines, -76 lines 0 comments Download
M components/search_engines/template_url_service.cc View 1 2 3 4 5 1 chunk +0 lines, -32 lines 0 comments Download
M components/user_prefs/tracked/pref_hash_filter.cc View 1 2 3 4 1 chunk +4 lines, -6 lines 0 comments Download
M ios/chrome/browser/prefs/ios_chrome_pref_service_factory.cc View 2 chunks +0 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
Alexander Yashkin
@gab - PTAL at prefs changes @pkasting - PTAL at search_engines changes https://codereview.chromium.org/2598033004/diff/20001/components/user_prefs/tracked/pref_hash_filter.cc File components/user_prefs/tracked/pref_hash_filter.cc ...
3 years, 12 months ago (2016-12-23 12:03:23 UTC) #1
gab
https://codereview.chromium.org/2598033004/diff/20001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/2598033004/diff/20001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode151 chrome/browser/prefs/chrome_pref_service_factory.cc:151: 8, prefs::kDefaultSearchProviderSearchURL, If they're no longer migrated, why do ...
3 years, 12 months ago (2016-12-23 17:26:26 UTC) #2
Alexander Yashkin
https://codereview.chromium.org/2598033004/diff/20001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/2598033004/diff/20001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode151 chrome/browser/prefs/chrome_pref_service_factory.cc:151: 8, prefs::kDefaultSearchProviderSearchURL, On 2016/12/23 at 17:26:26, gab (HOHOHO) wrote: ...
3 years, 12 months ago (2016-12-23 20:28:14 UTC) #3
gab
lgtm, beware that this may break many people using the old prefs in master_preferences (i.e. ...
3 years, 11 months ago (2017-01-05 19:35:27 UTC) #4
Peter Kasting
https://codereview.chromium.org/2598033004/diff/60001/components/search_engines/default_search_policy_handler.cc File components/search_engines/default_search_policy_handler.cc (right): https://codereview.chromium.org/2598033004/diff/60001/components/search_engines/default_search_policy_handler.cc#newcode14 components/search_engines/default_search_policy_handler.cc:14: #include "base/strings/string_util.h" Can this #include or any others now ...
3 years, 11 months ago (2017-01-06 00:09:56 UTC) #5
Alexander Yashkin
@gab, I searched for master_preferences documentation and found only https://www.chromium.org/administrators/configuring-other-preferences and default search options are ...
3 years, 11 months ago (2017-01-09 06:11:38 UTC) #6
Peter Kasting
LGTM git cl format can help prevent errors like the indentation issues. https://codereview.chromium.org/2598033004/diff/80001/components/search_engines/default_search_policy_handler.cc File components/search_engines/default_search_policy_handler.cc ...
3 years, 11 months ago (2017-01-09 22:00:06 UTC) #7
Alexander Yashkin
https://codereview.chromium.org/2598033004/diff/80001/components/search_engines/default_search_policy_handler.cc File components/search_engines/default_search_policy_handler.cc (right): https://codereview.chromium.org/2598033004/diff/80001/components/search_engines/default_search_policy_handler.cc#newcode154 components/search_engines/default_search_policy_handler.cc:154: // above. On 2017/01/09 22:00:05, Peter Kasting wrote: > ...
3 years, 11 months ago (2017-01-10 05:01:44 UTC) #8
Alexander Yashkin
On 2017/01/09 at 22:00:06, pkasting wrote: > LGTM > > git cl format can help ...
3 years, 11 months ago (2017-01-10 05:45:28 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2598033004/100001
3 years, 11 months ago (2017-01-10 05:48:56 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/338176)
3 years, 11 months ago (2017-01-10 06:02:25 UTC) #14
Alexander Yashkin
On 2017/01/10 at 06:02:25, commit-bot wrote: > Try jobs failed on following builders: > chromium_presubmit ...
3 years, 11 months ago (2017-01-10 06:17:45 UTC) #16
sdefresne
ios/ lgtm
3 years, 11 months ago (2017-01-10 09:35:10 UTC) #17
jochen (gone - plz use gerrit)
i can only approve UseCounter additions. Please ask somebody from tools/metrics/OWNERS for a review
3 years, 11 months ago (2017-01-10 09:45:31 UTC) #18
Alexander Yashkin
On 2017/01/10 at 09:45:31, jochen wrote: > i can only approve UseCounter additions. Please ask ...
3 years, 11 months ago (2017-01-10 10:24:42 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2598033004/100001
3 years, 11 months ago (2017-01-10 13:18:37 UTC) #26
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/1be376e34def3865b168d419e415ee4b6df63f6e
3 years, 11 months ago (2017-01-10 13:22:46 UTC) #29
Mark P
3 years, 11 months ago (2017-01-10 19:57:41 UTC) #30
Message was sent while issue was closed.
histograms.xml lgtm

Powered by Google App Engine
This is Rietveld 408576698