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

Issue 1332633002: Add constructor to create SSLStatus from SSLInfo (Closed)

Created:
5 years, 3 months ago by estark
Modified:
5 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add constructor to create SSLStatus from SSLInfo This constructor is now used from several places that set SSLStatus fields themselves, to reduce the risk of such places forgetting to set fields. This was causing bugs on WebsiteSettings for SSL interstitials (which were not setting the connection_status field, among others). BUG=529456 Committed: https://crrev.com/ced641eccd2a2f9e32ba173641ac6ddc68999f5c Cr-Commit-Position: refs/heads/master@{#348519}

Patch Set 1 #

Total comments: 4

Patch Set 2 : meacer comments #

Total comments: 2

Patch Set 3 : move SSLStatus construction to a constructor #

Patch Set 4 : add connection_status to SSLStatus::Equals() #

Patch Set 5 : temp: debug logging for mac/win test failure #

Total comments: 17

Patch Set 6 : meacer comments and possible fix for win/mac browser tests #

Total comments: 5

Patch Set 7 : rebase #

Patch Set 8 : meacer comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -32 lines) Patch
M chrome/browser/ssl/bad_clock_blocking_page.cc View 1 2 3 4 5 2 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 4 5 2 chunks +17 lines, -7 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 3 chunks +99 lines, -0 lines 0 comments Download
M content/browser/loader/resource_loader.cc View 1 2 1 chunk +3 lines, -8 lines 0 comments Download
M content/browser/ssl/ssl_policy.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/ssl/ssl_policy.cc View 1 2 2 chunks +9 lines, -7 lines 0 comments Download
M content/public/common/ssl_status.h View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M content/public/common/ssl_status.cc View 1 2 3 4 5 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (8 generated)
estark
meacer@, could you please take a look?
5 years, 3 months ago (2015-09-08 22:13:36 UTC) #2
meacer
https://codereview.chromium.org/1332633002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1332633002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc#newcode2366 chrome/browser/ssl/ssl_browser_tests.cc:2366: I think you should do a WaitForInterstitialAttach here, otherwise ...
5 years, 3 months ago (2015-09-08 22:19:39 UTC) #3
estark
https://codereview.chromium.org/1332633002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1332633002/diff/1/chrome/browser/ssl/ssl_browser_tests.cc#newcode2366 chrome/browser/ssl/ssl_browser_tests.cc:2366: On 2015/09/08 22:19:39, Mustafa Emre Acer wrote: > I ...
5 years, 3 months ago (2015-09-08 22:53:59 UTC) #4
meacer
LGTM for SSL interstitial, but looks like we might want a stricter fix for other ...
5 years, 3 months ago (2015-09-08 23:05:54 UTC) #5
estark
https://codereview.chromium.org/1332633002/diff/20001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1332633002/diff/20001/chrome/browser/ssl/ssl_blocking_page.cc#newcode302 chrome/browser/ssl/ssl_blocking_page.cc:302: entry->GetSSL().connection_status = ssl_info_.connection_status; On 2015/09/08 23:05:54, Mustafa Emre Acer ...
5 years, 3 months ago (2015-09-08 23:19:58 UTC) #6
meacer
On 2015/09/08 23:19:58, estark wrote: > https://codereview.chromium.org/1332633002/diff/20001/chrome/browser/ssl/ssl_blocking_page.cc > File chrome/browser/ssl/ssl_blocking_page.cc (right): > > https://codereview.chromium.org/1332633002/diff/20001/chrome/browser/ssl/ssl_blocking_page.cc#newcode302 > ...
5 years, 3 months ago (2015-09-08 23:23:19 UTC) #7
estark
meacer, PTAL at the latest patchset (+ updated CL description)? I added a new content::SSLStatus ...
5 years, 3 months ago (2015-09-09 03:37:05 UTC) #8
meacer
Looks good, though looks like one of the tests failed on the trybot. Once you ...
5 years, 3 months ago (2015-09-09 18:26:08 UTC) #9
estark
Fixed the tests on the trybots, but in a sort of weird way. Turns out ...
5 years, 3 months ago (2015-09-10 14:32:05 UTC) #10
meacer
Looks good. Two more nits. https://codereview.chromium.org/1332633002/diff/100001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1332633002/diff/100001/chrome/browser/ssl/ssl_browser_tests.cc#newcode251 chrome/browser/ssl/ssl_browser_tests.cc:251: EXPECT_TRUE(cert1); nit: EXPECT_TRUE(cert1 && ...
5 years, 3 months ago (2015-09-10 17:55:22 UTC) #11
estark
https://codereview.chromium.org/1332633002/diff/100001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1332633002/diff/100001/chrome/browser/ssl/ssl_browser_tests.cc#newcode257 chrome/browser/ssl/ssl_browser_tests.cc:257: two_without_cert_id.cert_id = 0; On 2015/09/10 17:55:22, Mustafa Emre Acer ...
5 years, 3 months ago (2015-09-10 17:59:28 UTC) #12
meacer
Lgtm https://codereview.chromium.org/1332633002/diff/100001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1332633002/diff/100001/chrome/browser/ssl/ssl_browser_tests.cc#newcode257 chrome/browser/ssl/ssl_browser_tests.cc:257: two_without_cert_id.cert_id = 0; On 2015/09/10 17:59:28, estark wrote: ...
5 years, 3 months ago (2015-09-10 18:02:23 UTC) #13
estark
Thanks Mustafa! avi: could you please review changes in content? Context: SSLBlockingPage had a place ...
5 years, 3 months ago (2015-09-11 05:22:53 UTC) #15
Avi (use Gerrit)
lgtm
5 years, 3 months ago (2015-09-11 18:03:20 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332633002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332633002/140001
5 years, 3 months ago (2015-09-11 18:07:51 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/67799)
5 years, 3 months ago (2015-09-11 19:30:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332633002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332633002/140001
5 years, 3 months ago (2015-09-11 20:36:28 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/67900)
5 years, 3 months ago (2015-09-11 22:37:03 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1332633002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1332633002/140001
5 years, 3 months ago (2015-09-12 01:11:44 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 3 months ago (2015-09-12 02:17:41 UTC) #28
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/ced641eccd2a2f9e32ba173641ac6ddc68999f5c Cr-Commit-Position: refs/heads/master@{#348519}
5 years, 3 months ago (2015-09-12 02:18:13 UTC) #29
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:27:42 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/ced641eccd2a2f9e32ba173641ac6ddc68999f5c
Cr-Commit-Position: refs/heads/master@{#348519}

Powered by Google App Engine
This is Rietveld 408576698