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

Issue 126093007: Introduce a hash_of_hashes dictionary. (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

Introduce a hash_of_hashes dictionary. It allows us to know whether the existing hashes dictionary can be trusted on startup (and thus whether seeding should be allowed). Note: seeding a NULL preference is always allowed. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243776

Patch Set 1 #

Patch Set 2 : fix clang compile #

Total comments: 4

Patch Set 3 : histogram desc #

Total comments: 4

Patch Set 4 : +missing histogram #

Total comments: 1

Patch Set 5 : wording #

Patch Set 6 : wording #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -32 lines) Patch
M chrome/browser/prefs/pref_hash_filter.cc View 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_hash_filter_unittest.cc View 3 chunks +24 lines, -2 lines 0 comments Download
M chrome/browser/prefs/pref_hash_store.h View 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_hash_store_impl.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_hash_store_impl.cc View 3 chunks +57 lines, -12 lines 0 comments Download
M chrome/browser/prefs/pref_hash_store_impl_unittest.cc View 1 2 chunks +53 lines, -15 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
gab
PTAL. Thanks! Gab
6 years, 11 months ago (2014-01-07 19:49:29 UTC) #1
Bernhard Bauer
LGTM https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc File chrome/browser/prefs/pref_hash_filter_unittest.cc (right): https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc#newcode238 chrome/browser/prefs/pref_hash_filter_unittest.cc:238: ASSERT_EQ(string_value, value_in_store); Do we really want to assert ...
6 years, 11 months ago (2014-01-08 09:16:22 UTC) #2
gab
Thanks, justification to question below. Cheers, Gab https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc File chrome/browser/prefs/pref_hash_filter_unittest.cc (right): https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc#newcode238 chrome/browser/prefs/pref_hash_filter_unittest.cc:238: ASSERT_EQ(string_value, value_in_store); ...
6 years, 11 months ago (2014-01-08 14:33:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/126093007/60001
6 years, 11 months ago (2014-01-08 14:34:06 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc File chrome/browser/prefs/pref_hash_filter_unittest.cc (right): https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc#newcode238 chrome/browser/prefs/pref_hash_filter_unittest.cc:238: ASSERT_EQ(string_value, value_in_store); On 2014/01/08 14:33:52, gab wrote: > On ...
6 years, 11 months ago (2014-01-08 14:41:12 UTC) #5
gab
https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc File chrome/browser/prefs/pref_hash_filter_unittest.cc (right): https://codereview.chromium.org/126093007/diff/60001/chrome/browser/prefs/pref_hash_filter_unittest.cc#newcode238 chrome/browser/prefs/pref_hash_filter_unittest.cc:238: ASSERT_EQ(string_value, value_in_store); On 2014/01/08 14:41:12, Bernhard Bauer wrote: > ...
6 years, 11 months ago (2014-01-08 14:55:58 UTC) #6
erikwright (departed)
I think that Bernhard's comment was that string serializations (the prior implementation) would be easier ...
6 years, 11 months ago (2014-01-08 14:58:52 UTC) #7
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=43790
6 years, 11 months ago (2014-01-08 15:05:41 UTC) #8
gab
+Alexei for histograms OWNERS. Thanks! Gab
6 years, 11 months ago (2014-01-08 15:06:28 UTC) #9
Alexei Svitkine (slow)
https://codereview.chromium.org/126093007/diff/270001/chrome/browser/prefs/pref_hash_store.h File chrome/browser/prefs/pref_hash_store.h (right): https://codereview.chromium.org/126093007/diff/270001/chrome/browser/prefs/pref_hash_store.h#newcode19 chrome/browser/prefs/pref_hash_store.h:19: // debating whether an unknown value is to be ...
6 years, 11 months ago (2014-01-08 21:18:14 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/126093007/diff/300001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/126093007/diff/300001/tools/metrics/histograms/histograms.xml#newcode16850 tools/metrics/histograms/histograms.xml:16850: + <summary>Whether the hashes dictionary for this profile is ...
6 years, 11 months ago (2014-01-08 21:19:36 UTC) #11
gab
PTAL. Thanks! Gab https://codereview.chromium.org/126093007/diff/270001/chrome/browser/prefs/pref_hash_store.h File chrome/browser/prefs/pref_hash_store.h (right): https://codereview.chromium.org/126093007/diff/270001/chrome/browser/prefs/pref_hash_store.h#newcode19 chrome/browser/prefs/pref_hash_store.h:19: // debating whether an unknown value ...
6 years, 11 months ago (2014-01-08 21:36:12 UTC) #12
Alexei Svitkine (slow)
LGTM, thanks!
6 years, 11 months ago (2014-01-08 21:39:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/126093007/390001
6 years, 11 months ago (2014-01-08 21:45:56 UTC) #14
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 04:51:03 UTC) #15
Message was sent while issue was closed.
Change committed as 243776

Powered by Google App Engine
This is Rietveld 408576698