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

Issue 1899003002: Remove URLRequestNonsecureConnection as it's unused (Closed)

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

Description

Remove URLRequestNonsecureConnection as it's unused URLRequestNonsecureConnection is never instantiated, and can't ever be, as it lacks a call to non-trivial constructor of its base. Committed: https://crrev.com/eb6c9e4183ad218fc304c0b822b35befb3774186 Cr-Commit-Position: refs/heads/master@{#388087}

Patch Set 1 #

Total comments: 1

Patch Set 2 : removed unused include as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -24 lines) Patch
M chrome/browser/ui/browser_browsertest.cc View 1 4 chunks +2 lines, -24 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
caseq
Please take a look!
4 years, 8 months ago (2016-04-18 21:59:10 UTC) #2
msw
lgtm with a nit https://codereview.chromium.org/1899003002/diff/1/chrome/browser/ui/browser_browsertest.cc File chrome/browser/ui/browser_browsertest.cc (right): https://codereview.chromium.org/1899003002/diff/1/chrome/browser/ui/browser_browsertest.cc#newcode109 chrome/browser/ui/browser_browsertest.cc:109: #include "net/ssl/ssl_connection_status_flags.h" nit: remove
4 years, 8 months ago (2016-04-18 22:09:06 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1899003002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1899003002/20001
4 years, 8 months ago (2016-04-18 23:08:39 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-19 00:08:08 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/eb6c9e4183ad218fc304c0b822b35befb3774186 Cr-Commit-Position: refs/heads/master@{#388087}
4 years, 8 months ago (2016-04-19 00:10:31 UTC) #9
estark
I think this should be reverted. There's certainly a problem here -- the test that ...
4 years, 8 months ago (2016-04-19 07:17:35 UTC) #10
estark
https://bugs.chromium.org/p/chromium/issues/detail?id=604629
4 years, 8 months ago (2016-04-19 07:21:13 UTC) #11
caseq
On 2016/04/19 07:17:35, estark wrote: > I think this should be reverted. There's certainly a ...
4 years, 8 months ago (2016-04-19 17:49:16 UTC) #12
estark
4 years, 8 months ago (2016-04-19 20:18:48 UTC) #13
Message was sent while issue was closed.
On 2016/04/19 17:49:16, caseq wrote:
> On 2016/04/19 07:17:35, estark wrote:
> > I think this should be reverted. There's certainly a problem here -- the
test
> > that was using this must be buggy. But with this change the test just
doesn't
> > make any sense (it claims to be testing a connection with a nonsecure
> protocol).
> 
> This change makes sense because it removes dead code. Dead code is bad because
> it reduces readability and may mask problems, as it happened in this
particular
> case.

That's true but I think it also reduces readability to leave behind a
nonsensical test. I guess maybe not just deleting the dead code but also
disabling the test and leaving a TODO with a bug would be best. But anyway
hopefully I'll be able to fix the underlying problem soon so it doesn't really
matter.

> 
> > I'll file a bug and investigate what the problem is with the test, but I
think
> > this should be reverted in the meantime, as we *should* be using
> > URLRequestNonsecureConnection in the test.
> 
> You can always revert it when you actually start using
> URLRequestNonsecureConnection, there's no point in doing it before.

Powered by Google App Engine
This is Rietveld 408576698