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

Issue 610063002: Fix UMA stat for expiration of certificate memory decisions (Closed)

Created:
6 years, 2 months ago by jww
Modified:
6 years, 2 months ago
Reviewers:
felt
CC:
chromium-reviews, palmer
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

Fix UMA stat for expiration of certificate memory decisions In our certificate memory decisions experiment, an UMA stat has been incorrectly recording when a decision is made after expiration for users in the "forget decisions at session end" group. As a fix, this CL adds a GUID to represent the current browsing session to the ChromeSSLHostStateDelegate and records that identifier whenever a decision is made. Then, in a future session, Chrome can tell if the decision has expired if the GUID doesn't match the current session's GUID. A good question to ask might be, "why use a GUID to represent the browsing session rather than simply iterating over all the current entries and marking them as expired?" Well, I'm glad you asked! Unfortunately, content settings does not allow one to iterate over the values of *compound* content settings; it only works for simply content settings, which certificate decisions most certainly are not. While this could be added, it would be a fair amount work for what amounts to a temporary problem, as this will all go away once the experiment is finished. BUG=418631 Committed: https://crrev.com/a040213b7020119ffe8f434ad948fe6adb37f1dc Cr-Commit-Position: refs/heads/master@{#297671}

Patch Set 1 #

Patch Set 2 : Comment fixes #

Patch Set 3 : Updated comment #

Total comments: 1

Patch Set 4 : Updated comment #

Total comments: 5

Patch Set 5 : Fixed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -11 lines) Patch
M chrome/browser/ssl/chrome_ssl_host_state_delegate.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate.cc View 1 5 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc View 1 2 3 4 2 chunks +66 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
jww
This is a minor fix for an incorrectly counted UMA stat in the cert memory ...
6 years, 2 months ago (2014-09-27 00:53:48 UTC) #2
jww
On 2014/09/27 00:53:48, jww wrote: > This is a minor fix for an incorrectly counted ...
6 years, 2 months ago (2014-09-27 02:10:31 UTC) #4
felt
I don't entirely understand. Can you explain why the old version is incorrect? https://codereview.chromium.org/610063002/diff/40001/chrome/browser/ssl/chrome_ssl_host_state_delegate.h File ...
6 years, 2 months ago (2014-09-30 01:50:59 UTC) #5
jww
On 2014/09/30 01:50:59, felt wrote: > I don't entirely understand. Can you explain why the ...
6 years, 2 months ago (2014-09-30 17:51:52 UTC) #6
jww
On 2014/09/30 17:51:52, jww wrote: > On 2014/09/30 01:50:59, felt wrote: > > I don't ...
6 years, 2 months ago (2014-09-30 17:54:37 UTC) #7
felt
On 2014/09/30 17:51:52, jww wrote: > On 2014/09/30 01:50:59, felt wrote: > > I don't ...
6 years, 2 months ago (2014-10-01 02:24:08 UTC) #8
felt
https://codereview.chromium.org/610063002/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate.cc (right): https://codereview.chromium.org/610063002/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate.cc#newcode260 chrome/browser/ssl/chrome_ssl_host_state_delegate.cc:260: current_expiration_guid_(base::GenerateGUID()) { This comment is not actionable, it's just ...
6 years, 2 months ago (2014-10-01 02:42:36 UTC) #9
jww
https://codereview.chromium.org/610063002/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc File chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc (right): https://codereview.chromium.org/610063002/diff/60001/chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc#newcode245 chrome/browser/ssl/chrome_ssl_host_state_delegate_test.cc:245: // The certificate has never been seen before, so ...
6 years, 2 months ago (2014-10-01 16:33:20 UTC) #10
felt
lgtm
6 years, 2 months ago (2014-10-01 16:43:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/610063002/80001
6 years, 2 months ago (2014-10-01 16:49:40 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001) as b63886b3d08d04e2019e87f7f5dd9531f2833d6d
6 years, 2 months ago (2014-10-01 17:38:22 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-10-01 17:39:08 UTC) #15
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a040213b7020119ffe8f434ad948fe6adb37f1dc
Cr-Commit-Position: refs/heads/master@{#297671}

Powered by Google App Engine
This is Rietveld 408576698