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

Issue 2521823007: Added browser test for TemplateUrlService protected prefs (Closed)

Created:
4 years ago by Alexander Yashkin
Modified:
4 years ago
Reviewers:
gab, Peter Kasting
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added browser test for TemplateUrlService protected prefs Create browser test that checks protection of preferences that are used to define default search provider. Currently where are tests that check protected prefs mechanism but no tests for preferences that are used in TemplateUrlService to store or override default search provider settings. BUG=668139 R=pkasting@chromium.org, gab@chromium.org Committed: https://crrev.com/38416868dc6ab9b4ae6b56ec4006d601c47704f0 Cr-Commit-Position: refs/heads/master@{#437211}

Patch Set 1 #

Total comments: 20

Patch Set 2 : Fixed after review, round 1 #

Total comments: 9

Patch Set 3 : Fixed after review, round 2 #

Patch Set 4 : Fixed compilation #

Total comments: 10

Patch Set 5 : Fixed test under chromeOS #

Patch Set 6 : Added test that checks protection of default search preferences #

Total comments: 12

Patch Set 7 : Fixed after review, round 1 #

Patch Set 8 : Disabled test checks on chromeos #

Patch Set 9 : Disabled test checks on chromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -0 lines) Patch
M chrome/browser/prefs/tracked/pref_hash_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +119 lines, -0 lines 0 comments Download

Messages

Total messages: 52 (19 generated)
Alexander Yashkin
4 years ago (2016-11-23 14:09:18 UTC) #1
Peter Kasting
https://codereview.chromium.org/2521823007/diff/1/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc File chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/1/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc#newcode29 chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc:29: // Seed is empty string in tests. Nit: I ...
4 years ago (2016-11-23 18:49:14 UTC) #2
Alexander Yashkin
https://codereview.chromium.org/2521823007/diff/1/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc File chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/1/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc#newcode29 chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc:29: // Seed is empty string in tests. On 2016/11/23 ...
4 years ago (2016-11-24 14:37:27 UTC) #3
Peter Kasting
LGTM, would still make at least the raw literal change. https://codereview.chromium.org/2521823007/diff/1/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc File chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/1/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc#newcode131 ...
4 years ago (2016-11-24 19:39:48 UTC) #4
Alexander Yashkin
Changed to raw literals, cool new feature, thanks. https://codereview.chromium.org/2521823007/diff/20001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc File chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/20001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc#newcode35 chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc:35: DISALLOW_COPY_AND_ASSIGN(TURLServicePrefsProtectBrowsertest); ...
4 years ago (2016-11-25 09:33:34 UTC) #5
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/2521823007/40001
4 years ago (2016-11-25 09:34:59 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/304569)
4 years ago (2016-11-25 10:02:28 UTC) #10
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/2521823007/60001
4 years ago (2016-11-25 10:55:29 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/322181)
4 years ago (2016-11-25 12:05:23 UTC) #15
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/2521823007/80001
4 years ago (2016-11-25 14:10:59 UTC) #18
gab
Feels like this should be in pref_hash_browsertest.cc? Seems to test tracked pref much more than ...
4 years ago (2016-11-25 14:24:41 UTC) #19
Alexander Yashkin
On 2016/11/25 at 14:24:41, gab wrote: > Feels like this should be in pref_hash_browsertest.cc? Seems ...
4 years ago (2016-11-25 14:46:06 UTC) #20
chromium-reviews
Well this is integration testing chrome's protection policies (I.e. it's testing chrome_pref_service_factory.cc). Nothing in search_engines/ ...
4 years ago (2016-11-25 15:31:14 UTC) #22
Alexander Yashkin
On 2016/11/25 at 15:31:14, chromium-reviews wrote: > Well this is integration testing chrome's protection policies ...
4 years ago (2016-11-25 15:55:19 UTC) #23
gab
On 2016/11/25 15:55:19, Alexander Yashkin wrote: > On 2016/11/25 at 15:31:14, chromium-reviews wrote: > > ...
4 years ago (2016-11-25 16:26:54 UTC) #24
Peter Kasting
https://codereview.chromium.org/2521823007/diff/20001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc File chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/20001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc#newcode39 chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc:39: // in tests. On 2016/11/25 09:33:34, Alexander Yashkin wrote: ...
4 years ago (2016-11-26 06:12:40 UTC) #25
gab
https://codereview.chromium.org/2521823007/diff/60001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc File chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/60001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc#newcode117 chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc:117: const char* default_search_provider_data = On 2016/11/26 06:12:40, Peter Kasting ...
4 years ago (2016-11-28 16:12:20 UTC) #26
Peter Kasting
https://codereview.chromium.org/2521823007/diff/60001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc File chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/60001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc#newcode117 chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc:117: const char* default_search_provider_data = On 2016/11/28 16:12:20, gab wrote: ...
4 years ago (2016-11-28 20:20:44 UTC) #27
gab
On 2016/11/28 20:20:44, Peter Kasting wrote: > https://codereview.chromium.org/2521823007/diff/60001/chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc > File > chrome/browser/search_engines/template_url_service_prefs_protect_browsertest.cc > (right): > ...
4 years ago (2016-11-28 20:24:25 UTC) #28
Peter Kasting
On 2016/11/28 20:24:25, gab wrote: > On 2016/11/28 20:20:44, Peter Kasting wrote: > > I ...
4 years ago (2016-11-28 20:32:43 UTC) #29
Alexander Yashkin
On 2016/11/25 at 16:26:54, gab wrote: > On 2016/11/25 15:55:19, Alexander Yashkin wrote: > > ...
4 years ago (2016-12-07 13:56:37 UTC) #30
Alexander Yashkin
To the question of how we disabled protection - while turning off some prefs protection ...
4 years ago (2016-12-07 14:20:33 UTC) #31
gab
Awesome! Glad this was a much simpler test to write. It makes sense to have ...
4 years ago (2016-12-07 16:18:44 UTC) #32
Peter Kasting
LGTM https://codereview.chromium.org/2521823007/diff/100001/chrome/browser/prefs/tracked/pref_hash_browsertest.cc File chrome/browser/prefs/tracked/pref_hash_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/100001/chrome/browser/prefs/tracked/pref_hash_browsertest.cc#newcode1178 chrome/browser/prefs/tracked/pref_hash_browsertest.cc:1178: static constexpr char default_search_provider_data[] = On 2016/12/07 16:18:44, ...
4 years ago (2016-12-07 18:40:18 UTC) #33
Peter Kasting
https://codereview.chromium.org/2521823007/diff/100001/chrome/browser/prefs/tracked/pref_hash_browsertest.cc File chrome/browser/prefs/tracked/pref_hash_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/100001/chrome/browser/prefs/tracked/pref_hash_browsertest.cc#newcode1179 chrome/browser/prefs/tracked/pref_hash_browsertest.cc:1179: R"({ On 2016/12/07 18:40:18, Peter Kasting wrote: > Nit: ...
4 years ago (2016-12-07 18:41:34 UTC) #34
Alexander Yashkin
https://codereview.chromium.org/2521823007/diff/100001/chrome/browser/prefs/tracked/pref_hash_browsertest.cc File chrome/browser/prefs/tracked/pref_hash_browsertest.cc (right): https://codereview.chromium.org/2521823007/diff/100001/chrome/browser/prefs/tracked/pref_hash_browsertest.cc#newcode1178 chrome/browser/prefs/tracked/pref_hash_browsertest.cc:1178: static constexpr char default_search_provider_data[] = On 2016/12/07 at 18:40:18, ...
4 years ago (2016-12-08 04:53:57 UTC) #35
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/2521823007/120001
4 years ago (2016-12-08 04:54:35 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/329338)
4 years ago (2016-12-08 06:04:38 UTC) #40
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/2521823007/140001
4 years ago (2016-12-08 06:24:04 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/329361)
4 years ago (2016-12-08 07:29:01 UTC) #45
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/2521823007/160001
4 years ago (2016-12-08 07:56:36 UTC) #48
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-08 08:40:43 UTC) #50
commit-bot: I haz the power
4 years ago (2016-12-08 08:42:33 UTC) #52
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/38416868dc6ab9b4ae6b56ec4006d601c47704f0
Cr-Commit-Position: refs/heads/master@{#437211}

Powered by Google App Engine
This is Rietveld 408576698