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

Issue 1443043002: Execute ClientCertResolver on network disconnection. (Closed)

Created:
5 years, 1 month ago by emaxx
Modified:
5 years, 1 month ago
Reviewers:
stevenjb
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Execute ClientCertResolver on network disconnection. The previous behavior was that the certificate resolver was executed only in a few circumstances: directly after login, when a certificate is installed/removed, when the network list changes. This means that if a certificate expired and none of the above happened before a next network connection is initiated, then the network configuration in Network Manager would still contain the certificate. This, in turn, means that the managed users won't see the "Get new certificate" dialog (the Wi-Fi profile setup dialog will appear instead). So the solution is to trigger the certificate resolver when the network disconnection happens, so that the expired certificate is removed before the next connect attempt. BUG=551380 Committed: https://crrev.com/98181cd7a5d2745589fe47e63e8926b32b7f1832 Cr-Commit-Position: refs/heads/master@{#360110}

Patch Set 1 #

Patch Set 2 : Fix problem with AutoConnectHandler test #

Total comments: 5

Patch Set 3 : Changed SimpleTestClock ownership #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -24 lines) Patch
M chromeos/network/client_cert_resolver.h View 1 2 6 chunks +17 lines, -1 line 0 comments Download
M chromeos/network/client_cert_resolver.cc View 1 2 10 chunks +36 lines, -16 lines 0 comments Download
M chromeos/network/client_cert_resolver_unittest.cc View 1 2 9 chunks +50 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
emaxx
Steven, PTAL.
5 years, 1 month ago (2015-11-16 20:27:09 UTC) #2
stevenjb
https://codereview.chromium.org/1443043002/diff/20001/chromeos/network/client_cert_resolver_unittest.cc File chromeos/network/client_cert_resolver_unittest.cc (right): https://codereview.chromium.org/1443043002/diff/20001/chromeos/network/client_cert_resolver_unittest.cc#newcode55 chromeos/network/client_cert_resolver_unittest.cc:55: test_clock_(NULL), s/NULL/nullptr throughout https://codereview.chromium.org/1443043002/diff/20001/chromeos/network/client_cert_resolver_unittest.cc#newcode147 chromeos/network/client_cert_resolver_unittest.cc:147: client_cert_resolver_->SetClockForTesting(make_scoped_ptr(test_clock_)); This is dangerous. ...
5 years, 1 month ago (2015-11-17 00:45:22 UTC) #3
emaxx
https://codereview.chromium.org/1443043002/diff/20001/chromeos/network/client_cert_resolver_unittest.cc File chromeos/network/client_cert_resolver_unittest.cc (right): https://codereview.chromium.org/1443043002/diff/20001/chromeos/network/client_cert_resolver_unittest.cc#newcode55 chromeos/network/client_cert_resolver_unittest.cc:55: test_clock_(NULL), On 2015/11/17 00:45:22, stevenjb wrote: > s/NULL/nullptr throughout ...
5 years, 1 month ago (2015-11-17 12:44:07 UTC) #4
stevenjb
lgtm https://codereview.chromium.org/1443043002/diff/20001/chromeos/network/client_cert_resolver_unittest.cc File chromeos/network/client_cert_resolver_unittest.cc (right): https://codereview.chromium.org/1443043002/diff/20001/chromeos/network/client_cert_resolver_unittest.cc#newcode147 chromeos/network/client_cert_resolver_unittest.cc:147: client_cert_resolver_->SetClockForTesting(make_scoped_ptr(test_clock_)); On 2015/11/17 12:44:07, emaxx wrote: > On ...
5 years, 1 month ago (2015-11-17 17:53:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1443043002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1443043002/40001
5 years, 1 month ago (2015-11-17 18:02:03 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-11-17 18:08:19 UTC) #8
commit-bot: I haz the power
5 years, 1 month ago (2015-11-17 18:09:01 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/98181cd7a5d2745589fe47e63e8926b32b7f1832
Cr-Commit-Position: refs/heads/master@{#360110}

Powered by Google App Engine
This is Rietveld 408576698