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

Issue 172173004: Remove unneeded DCHECK for connection status. (Closed)

Created:
6 years, 10 months ago by babu
Modified:
6 years, 7 months ago
Reviewers:
markusheintz_, wtc
CC:
chromium-reviews, Peter Kasting
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix a DCHECK failure in WebsiteSettings::Init() Replace DCHECK with conditions and set the connection status as unencrypted, if the security_style is unknown / HTTPS without a certificate / not HTTPS. BUG=344891 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269560

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed review comment #

Total comments: 2

Patch Set 3 : Fix a DCHECK failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M chrome/browser/ui/website_settings/website_settings.cc View 1 2 1 chunk +12 lines, -7 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
babu
6 years, 10 months ago (2014-02-19 15:38:13 UTC) #1
babu
Markus, could you please review this CL?
6 years, 10 months ago (2014-02-21 22:29:43 UTC) #2
markusheintz_
https://codereview.chromium.org/172173004/diff/1/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (left): https://codereview.chromium.org/172173004/diff/1/chrome/browser/ui/website_settings/website_settings.cc#oldcode440 chrome/browser/ui/website_settings/website_settings.cc:440: DCHECK_EQ(ssl.security_style, content::SECURITY_STYLE_UNAUTHENTICATED); This DCHECK can still verify a precondition ...
6 years, 10 months ago (2014-02-24 14:20:36 UTC) #3
wtc
Review comments on patch set 1: https://codereview.chromium.org/172173004/diff/1/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (left): https://codereview.chromium.org/172173004/diff/1/chrome/browser/ui/website_settings/website_settings.cc#oldcode440 chrome/browser/ui/website_settings/website_settings.cc:440: DCHECK_EQ(ssl.security_style, content::SECURITY_STYLE_UNAUTHENTICATED); I ...
6 years, 10 months ago (2014-02-24 22:56:05 UTC) #4
babu
Markus and wtc, thanks a lot for providing thorough information. I will update the patch.
6 years, 10 months ago (2014-02-25 16:13:51 UTC) #5
babu
Patch updated with @wtc's suggested fix.
6 years, 10 months ago (2014-02-25 16:30:36 UTC) #6
markusheintz_
LGTM Thanks a lot for fixing this.
6 years, 10 months ago (2014-02-25 19:18:17 UTC) #7
wtc
Patch set 2 LGTM.
6 years, 10 months ago (2014-02-25 22:42:23 UTC) #8
wtc
https://codereview.chromium.org/172173004/diff/60001/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (left): https://codereview.chromium.org/172173004/diff/60001/chrome/browser/ui/website_settings/website_settings.cc#oldcode440 chrome/browser/ui/website_settings/website_settings.cc:440: DCHECK_EQ(ssl.security_style, content::SECURITY_STYLE_UNAUTHENTICATED); Babu: I just looked at bug 344891 ...
6 years, 10 months ago (2014-02-25 22:55:27 UTC) #9
babu
wtc, thanks for taking a deeper look into this again. The ssl values were same ...
6 years, 10 months ago (2014-02-26 13:48:30 UTC) #10
wtc
On 2014/02/26 13:48:30, babu wrote: > > The ssl values were same as we initialized ...
6 years, 10 months ago (2014-02-27 02:43:55 UTC) #11
wtc
https://codereview.chromium.org/172173004/diff/60001/chrome/browser/ui/website_settings/website_settings.cc File chrome/browser/ui/website_settings/website_settings.cc (right): https://codereview.chromium.org/172173004/diff/60001/chrome/browser/ui/website_settings/website_settings.cc#newcode438 chrome/browser/ui/website_settings/website_settings.cc:438: if (ssl.security_style == content::SECURITY_STYLE_UNAUTHENTICATED) { As a workaround for ...
6 years, 9 months ago (2014-02-27 22:30:29 UTC) #12
babu
On 2014/02/27 22:30:29, wtc wrote: > https://codereview.chromium.org/172173004/diff/60001/chrome/browser/ui/website_settings/website_settings.cc > File chrome/browser/ui/website_settings/website_settings.cc (right): > > https://codereview.chromium.org/172173004/diff/60001/chrome/browser/ui/website_settings/website_settings.cc#newcode438 > ...
6 years, 9 months ago (2014-02-27 22:44:25 UTC) #13
Peter Kasting
On 2014/02/27 02:43:55, wtc wrote: > On 2014/02/26 13:48:30, babu wrote: > > The ssl ...
6 years, 9 months ago (2014-02-28 00:54:40 UTC) #14
wtc
On 2014/02/28 00:54:40, Peter Kasting wrote: > On 2014/02/27 02:43:55, wtc wrote: > > > ...
6 years, 9 months ago (2014-03-04 01:24:41 UTC) #15
babu
Thank you all for feedback. I also agree with Peter's proposal and it totally make ...
6 years, 9 months ago (2014-03-06 16:20:11 UTC) #16
markusheintz_
On 2014/03/06 16:20:11, babu wrote: > Thank you all for feedback. I also agree with ...
6 years, 8 months ago (2014-04-04 12:59:05 UTC) #17
babu
On 2014/04/04 12:59:05, markusheintz_ wrote: > What's the status on this? Apologies for keeping the ...
6 years, 8 months ago (2014-04-07 13:54:26 UTC) #18
babu
6 years, 8 months ago (2014-04-07 14:10:57 UTC) #19
markusheintz_
LGTM since this fixes the DCHECK issue. I'll look into showing a "loading" message and ...
6 years, 7 months ago (2014-05-09 08:33:51 UTC) #20
babu
The CQ bit was checked by sudarsana.nagineni@intel.com
6 years, 7 months ago (2014-05-09 08:58:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sudarsana.nagineni@intel.com/172173004/80001
6 years, 7 months ago (2014-05-09 09:04:30 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-09 10:40:47 UTC) #23
commit-bot: I haz the power
6 years, 7 months ago (2014-05-10 11:40:02 UTC) #24
Message was sent while issue was closed.
Change committed as 269560

Powered by Google App Engine
This is Rietveld 408576698