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

Issue 122653005: Chrome Settings Hardening (Closed)

Created:
6 years, 11 months ago by gab
Modified:
6 years, 11 months ago
CC:
chromium-reviews, Ilya Sherman, jar (doing other things), asvitkine+watch_chromium.org
Visibility:
Public.

Description

Chrome Settings Hardening Introduces various settings enforcement levels when untrusted settings are detected. Uses value-parametrized tests to test all enforcement levels: https://code.google.com/p/googletest/wiki/AdvancedGuide#How_to_Write_Value-Parameterized_Tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=242967

Patch Set 1 #

Patch Set 2 : fix compile? #

Total comments: 4

Patch Set 3 : fix compile? -- use ARRAYSIZE_UNSAFE #

Patch Set 4 : void* #

Total comments: 6

Patch Set 5 : fix compile + erik's comments #

Total comments: 3

Patch Set 6 : void* 0xBAD instead of returning a base::Value* in checked/stored_value() test helper #

Unified diffs Side-by-side diffs Delta from patch set Stats (+447 lines, -149 lines) Patch
M chrome/browser/prefs/chrome_pref_service_factory.cc View 1 2 3 4 4 chunks +78 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter.h View 1 3 chunks +47 lines, -5 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter.cc View 1 2 3 4 3 chunks +78 lines, -42 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter_unittest.cc View 1 2 3 4 5 6 chunks +231 lines, -97 lines 0 comments Download
M chrome/browser/prefs/pref_hash_store.h View 2 chunks +1 line, -3 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
gab
Erik, Berhard, and Alexei. PTAL. Thanks! Gab
6 years, 11 months ago (2013-12-31 01:24:51 UTC) #1
Bernhard Bauer
LGTM!
6 years, 11 months ago (2014-01-02 09:17:16 UTC) #2
gab
Mark, can you PTAL @ histograms, it appears Alexei is OOO. Thanks! Gab
6 years, 11 months ago (2014-01-02 13:33:13 UTC) #3
Mark P
histograms.xml lgtm
6 years, 11 months ago (2014-01-02 18:26:25 UTC) #4
gab
@mpearson: see question below. Thanks! Gab https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode73 chrome/browser/prefs/chrome_pref_service_factory.cc:73: const size_t kTrackedPrefsReportingIDsCount ...
6 years, 11 months ago (2014-01-02 18:40:22 UTC) #5
Mark P
https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode73 chrome/browser/prefs/chrome_pref_service_factory.cc:73: const size_t kTrackedPrefsReportingIDsCount = 14; On 2014/01/02 18:40:22, gab ...
6 years, 11 months ago (2014-01-02 19:32:46 UTC) #6
erikwright (departed)
On 2014/01/02 19:32:46, Mark P wrote: > https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc > File chrome/browser/prefs/chrome_pref_service_factory.cc (right): > > https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode73 ...
6 years, 11 months ago (2014-01-02 19:34:48 UTC) #7
Mark P
On 2014/01/02 19:34:48, erikwright wrote: > On 2014/01/02 19:32:46, Mark P wrote: > > > ...
6 years, 11 months ago (2014-01-02 20:07:24 UTC) #8
erikwright (departed)
OK. It's my feeling that manually keeping this "max" up to date with the platform ...
6 years, 11 months ago (2014-01-02 20:16:09 UTC) #9
erikwright (departed)
https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode80 chrome/browser/prefs/chrome_pref_service_factory.cc:80: PrefHashFilter::EnforcementLevel level; nit: I would reverse this since, intuitively, ...
6 years, 11 months ago (2014-01-03 19:08:13 UTC) #10
gab
Erik, PTAL. Thanks! Gab https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc File chrome/browser/prefs/chrome_pref_service_factory.cc (right): https://codereview.chromium.org/122653005/diff/50001/chrome/browser/prefs/chrome_pref_service_factory.cc#newcode80 chrome/browser/prefs/chrome_pref_service_factory.cc:80: PrefHashFilter::EnforcementLevel level; On 2014/01/03 19:08:13, ...
6 years, 11 months ago (2014-01-03 19:26:09 UTC) #11
erikwright (departed)
LGTM. One alternative for the parameterization and I leave it up to you to decide ...
6 years, 11 months ago (2014-01-03 19:54:41 UTC) #12
gab
Thanks! https://codereview.chromium.org/122653005/diff/400001/chrome/browser/prefs/pref_hash_filter_unittest.cc File chrome/browser/prefs/pref_hash_filter_unittest.cc (right): https://codereview.chromium.org/122653005/diff/400001/chrome/browser/prefs/pref_hash_filter_unittest.cc#newcode63 chrome/browser/prefs/pref_hash_filter_unittest.cc:63: return &unseen_value; On 2014/01/03 19:54:42, erikwright wrote: > ...
6 years, 11 months ago (2014-01-03 21:29:03 UTC) #13
gab
On 2014/01/03 19:54:41, erikwright wrote: > LGTM. One alternative for the parameterization and I leave ...
6 years, 11 months ago (2014-01-03 21:30:25 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/122653005/540001
6 years, 11 months ago (2014-01-03 21:31:07 UTC) #15
commit-bot: I haz the power
6 years, 11 months ago (2014-01-03 23:59:58 UTC) #16
Message was sent while issue was closed.
Change committed as 242967

Powered by Google App Engine
This is Rietveld 408576698