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

Issue 1035023002: Adding the Finch code for the certificate error reporter experiment (Closed)

Created:
5 years, 9 months ago by fahl
Modified:
5 years, 8 months ago
Reviewers:
felt, 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

Adding the Finch code for the certificate errors reporter experiment BUG=461589 Committed: https://crrev.com/a9e9187b29a86e140021533b4a0d76da3bfbe386 Cr-Commit-Position: refs/heads/master@{#323870}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Rename and move the Finch helper function #

Patch Set 3 : Finch experiment for certificiate error reporter. #

Total comments: 2

Patch Set 4 : Finch support for unittests #

Total comments: 3

Patch Set 5 : stark's comments #

Total comments: 15

Patch Set 6 : Fix unittests #

Total comments: 6

Patch Set 7 : Fix logic bug and add test for invalid Finch param value #

Total comments: 6

Patch Set 8 : Refactor Finch config #

Total comments: 20

Patch Set 9 : felt's comments #

Total comments: 4

Patch Set 10 : felt's comments #

Patch Set 11 : fix conflicts #

Total comments: 4

Patch Set 12 : fix resolution mix-up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -60 lines) Patch
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -8 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ssl/ssl_blocking_page.cc View 1 2 3 4 5 6 7 8 9 7 chunks +50 lines, -13 lines 0 comments Download
M chrome/browser/ssl/ssl_browser_tests.cc View 1 2 3 4 5 6 7 8 9 6 chunks +96 lines, -35 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 65 (15 generated)
fahl
5 years, 9 months ago (2015-03-26 23:51:37 UTC) #2
estark
How do Finch experiments work when running tests? Can you try (or did you already ...
5 years, 9 months ago (2015-03-27 01:22:02 UTC) #3
fahl
https://codereview.chromium.org/1035023002/diff/1/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/1/chrome/browser/ssl/ssl_blocking_page.cc#newcode83 chrome/browser/ssl/ssl_blocking_page.cc:83: bool SendFraudulentCertificateChain() { On 2015/03/27 01:22:02, emily wrote: > ...
5 years, 9 months ago (2015-03-27 01:28:24 UTC) #4
fahl
https://codereview.chromium.org/1035023002/diff/1/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/1/chrome/browser/ssl/ssl_blocking_page.cc#newcode83 chrome/browser/ssl/ssl_blocking_page.cc:83: bool SendFraudulentCertificateChain() { On 2015/03/27 01:22:02, emily wrote: > ...
5 years, 9 months ago (2015-03-27 01:59:08 UTC) #5
felt
On 2015/03/27 01:22:02, emily wrote: > How do Finch experiments work when running tests? Can ...
5 years, 9 months ago (2015-03-27 04:45:25 UTC) #6
felt
"After talking to Emily we decided to show all users the checkbox, but make the ...
5 years, 9 months ago (2015-03-27 04:51:33 UTC) #7
estark
On 2015/03/27 04:51:33, felt wrote: > "After talking to Emily we decided to show all ...
5 years, 9 months ago (2015-03-27 06:09:07 UTC) #8
felt
On 2015/03/27 06:09:07, emily wrote: > On 2015/03/27 04:51:33, felt wrote: > > "After talking ...
5 years, 9 months ago (2015-03-27 12:40:37 UTC) #9
fahl
On 2015/03/26 23:51:37, fahl wrote: After talking to Emily we decided to show all users ...
5 years, 8 months ago (2015-03-27 17:12:43 UTC) #10
fahl
5 years, 8 months ago (2015-03-27 22:56:19 UTC) #12
estark
felt@: you were going to send an example of the command-line flag to set a ...
5 years, 8 months ago (2015-03-27 23:23:41 UTC) #13
fahl
https://codereview.chromium.org/1035023002/diff/40001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/40001/chrome/browser/ssl/ssl_blocking_page.cc#newcode110 chrome/browser/ssl/ssl_blocking_page.cc:110: if (base::CommandLine::ForCurrentProcess()->HasSwitch( On 2015/03/27 23:23:41, emily wrote: > I ...
5 years, 8 months ago (2015-03-27 23:27:27 UTC) #14
felt
On 2015/03/27 23:23:41, emily wrote: > felt@: you were going to send an example of ...
5 years, 8 months ago (2015-03-28 01:44:09 UTC) #15
fahl
On 2015/03/28 01:44:09, felt wrote: > On 2015/03/27 23:23:41, emily wrote: > > felt@: you ...
5 years, 8 months ago (2015-03-30 21:37:45 UTC) #16
felt
On 2015/03/30 21:37:45, fahl wrote: > On 2015/03/28 01:44:09, felt wrote: > > On 2015/03/27 ...
5 years, 8 months ago (2015-03-31 06:19:28 UTC) #17
fahl
I added Finch parameter support for the experiment and removed the old command line flag ...
5 years, 8 months ago (2015-04-01 18:45:23 UTC) #19
estark
I think we should get rid of the kEnableInvalidCerts flag entirely, to get rid of ...
5 years, 8 months ago (2015-04-01 20:47:44 UTC) #20
estark
https://codereview.chromium.org/1035023002/diff/80001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1035023002/diff/80001/chrome/browser/ssl/ssl_browser_tests.cc#newcode1191 chrome/browser/ssl/ssl_browser_tests.cc:1191: TestBrokenHTTPSReporting(CertificateReporting::EXTENDED_REPORTING_OPT_IN, On 2015/04/01 20:47:43, emily wrote: > We should ...
5 years, 8 months ago (2015-04-01 20:49:40 UTC) #21
estark
5 years, 8 months ago (2015-04-01 20:49:41 UTC) #22
fahl
5 years, 8 months ago (2015-04-02 00:50:18 UTC) #25
estark
Hmm, the tests don't look quite right to me. Here are the cases that I ...
5 years, 8 months ago (2015-04-02 01:19:51 UTC) #26
fahl
On 2015/04/02 01:19:51, emily wrote: > Hmm, the tests don't look quite right to me. ...
5 years, 8 months ago (2015-04-02 02:01:07 UTC) #27
fahl
https://codereview.chromium.org/1035023002/diff/140001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/140001/chrome/browser/ssl/ssl_blocking_page.cc#newcode674 chrome/browser/ssl/ssl_blocking_page.cc:674: if (!ReportCertificateErrors() || On 2015/04/02 01:19:51, emily wrote: > ...
5 years, 8 months ago (2015-04-02 02:01:22 UTC) #28
fahl
On 2015/04/02 02:01:07, fahl wrote: > On 2015/04/02 01:19:51, emily wrote: > > Hmm, the ...
5 years, 8 months ago (2015-04-02 02:25:07 UTC) #29
estark
On 2015/04/02 02:25:07, fahl wrote: > On 2015/04/02 02:01:07, fahl wrote: > > On 2015/04/02 ...
5 years, 8 months ago (2015-04-02 03:22:13 UTC) #30
estark
https://codereview.chromium.org/1035023002/diff/140001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1035023002/diff/140001/chrome/browser/ssl/ssl_browser_tests.cc#newcode1221 chrome/browser/ssl/ssl_browser_tests.cc:1221: TestBrokenHTTPSReporting(CertificateReporting::EXTENDED_REPORTING_OPT_IN, this one also needs a finch param (I ...
5 years, 8 months ago (2015-04-02 03:22:23 UTC) #31
fahl
I still could move the Finch specific code from the test method bodies to a ...
5 years, 8 months ago (2015-04-02 17:45:29 UTC) #34
estark
Tests look good! Logic bug inline though. https://codereview.chromium.org/1035023002/diff/200001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/200001/chrome/browser/ssl/ssl_blocking_page.cc#newcode115 chrome/browser/ssl/ssl_blocking_page.cc:115: LOG(ERROR) << ...
5 years, 8 months ago (2015-04-02 18:33:34 UTC) #35
fahl
https://codereview.chromium.org/1035023002/diff/200001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/200001/chrome/browser/ssl/ssl_blocking_page.cc#newcode115 chrome/browser/ssl/ssl_blocking_page.cc:115: LOG(ERROR) << "RandValue: " << base::RandDouble(); On 2015/04/02 18:33:34, ...
5 years, 8 months ago (2015-04-02 19:24:58 UTC) #37
estark
LGTM except for two small style things inline. https://codereview.chromium.org/1035023002/diff/230001/chrome/browser/ssl/ssl_browser_tests.cc File chrome/browser/ssl/ssl_browser_tests.cc (right): https://codereview.chromium.org/1035023002/diff/230001/chrome/browser/ssl/ssl_browser_tests.cc#newcode479 chrome/browser/ssl/ssl_browser_tests.cc:479: std::map<std::string, ...
5 years, 8 months ago (2015-04-02 19:55:56 UTC) #38
estark
https://codereview.chromium.org/1035023002/diff/230001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/230001/chrome/browser/ssl/ssl_blocking_page.cc#newcode673 chrome/browser/ssl/ssl_blocking_page.cc:673: web_contents()->GetBrowserContext()->IsOffTheRecord())) Sorry, one more nit here, I think the ...
5 years, 8 months ago (2015-04-02 20:01:32 UTC) #39
fahl
Made the Finch config strings constants and moved the actual experiment configuration to a helper ...
5 years, 8 months ago (2015-04-02 21:38:04 UTC) #40
estark
felt@ do you think you can look at this tomorrow? We can start getting data ...
5 years, 8 months ago (2015-04-03 04:57:01 UTC) #41
felt
https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc#newcode115 chrome/browser/ssl/ssl_blocking_page.cc:115: kHTTPSErrorReporterFinchExperimentName) nit: this indentation is very odd, is this ...
5 years, 8 months ago (2015-04-03 14:32:29 UTC) #42
felt
https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.h File chrome/browser/ssl/ssl_blocking_page.h (right): https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.h#newcode25 chrome/browser/ssl/ssl_blocking_page.h:25: // Constants for the HTTPSErrorReporter Finch experiment Is this ...
5 years, 8 months ago (2015-04-03 14:34:46 UTC) #43
fahl
https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc#newcode115 chrome/browser/ssl/ssl_blocking_page.cc:115: kHTTPSErrorReporterFinchExperimentName) On 2015/04/03 14:32:28, felt wrote: > nit: this ...
5 years, 8 months ago (2015-04-03 17:39:32 UTC) #44
estark
https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc#newcode685 chrome/browser/ssl/ssl_blocking_page.cc:685: const bool enabled = On 2015/04/03 17:39:31, fahl wrote: ...
5 years, 8 months ago (2015-04-03 17:44:36 UTC) #45
fahl
On 2015/04/03 17:44:36, emily wrote: > https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc > File chrome/browser/ssl/ssl_blocking_page.cc (right): > > https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc#newcode685 > ...
5 years, 8 months ago (2015-04-03 19:29:32 UTC) #46
felt
https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/250001/chrome/browser/ssl/ssl_blocking_page.cc#newcode685 chrome/browser/ssl/ssl_blocking_page.cc:685: const bool enabled = On 2015/04/03 17:44:36, emily wrote: ...
5 years, 8 months ago (2015-04-03 22:38:09 UTC) #47
fahl
https://codereview.chromium.org/1035023002/diff/270001/chrome/browser/ssl/ssl_blocking_page.cc File chrome/browser/ssl/ssl_blocking_page.cc (right): https://codereview.chromium.org/1035023002/diff/270001/chrome/browser/ssl/ssl_blocking_page.cc#newcode130 chrome/browser/ssl/ssl_blocking_page.cc:130: if (!sendingThreshold.empty()) { On 2015/04/03 22:38:09, felt wrote: > ...
5 years, 8 months ago (2015-04-04 00:33:19 UTC) #48
felt
lgtm
5 years, 8 months ago (2015-04-04 00:42:41 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1035023002/290001
5 years, 8 months ago (2015-04-04 00:42:46 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/11962)
5 years, 8 months ago (2015-04-04 00:46:53 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1035023002/310001
5 years, 8 months ago (2015-04-04 01:09:08 UTC) #57
estark
https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_switches.cc File chrome/common/chrome_switches.cc (right): https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_switches.cc#newcode468 chrome/common/chrome_switches.cc:468: const char kEnableIconNtp[] = "enable-icon-ntp"; I don't think this ...
5 years, 8 months ago (2015-04-04 01:17:07 UTC) #58
estark
https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_switches.h File chrome/common/chrome_switches.h (right): https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_switches.h#newcode137 chrome/common/chrome_switches.h:137: extern const char kEnableIconNtp[]; same here
5 years, 8 months ago (2015-04-04 01:17:34 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1035023002/330001
5 years, 8 months ago (2015-04-04 01:26:28 UTC) #62
commit-bot: I haz the power
Committed patchset #12 (id:330001)
5 years, 8 months ago (2015-04-04 03:01:57 UTC) #63
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/a9e9187b29a86e140021533b4a0d76da3bfbe386 Cr-Commit-Position: refs/heads/master@{#323870}
5 years, 8 months ago (2015-04-04 03:02:54 UTC) #64
fahl
5 years, 8 months ago (2015-04-13 18:44:01 UTC) #65
Message was sent while issue was closed.
https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_s...
File chrome/common/chrome_switches.cc (right):

https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_s...
chrome/common/chrome_switches.cc:468: const char kEnableIconNtp[]               
 = "enable-icon-ntp";
On 2015/04/04 01:17:06, emily wrote:
> I don't think this should be here... mix-up during the conflict resolution? It
> looks like these kEnableIconNtp things were supposed to be deleted.

Done.

https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_s...
File chrome/common/chrome_switches.h (right):

https://codereview.chromium.org/1035023002/diff/310001/chrome/common/chrome_s...
chrome/common/chrome_switches.h:137: extern const char kEnableIconNtp[];
On 2015/04/04 01:17:34, emily wrote:
> same here

Done.

Powered by Google App Engine
This is Rietveld 408576698