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

Issue 2278013002: Add support for the ExperimentalSwReporterEngine field trial. (Closed)

Created:
4 years, 3 months ago by Joe Mason
Modified:
4 years, 2 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, grt+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for the ExperimentalSwReporterEngine field trial. If the field trial is enabled, read a "tag" value from the variation parameters and pass it on to the component updater. After the experimental component is installed, read command-line arguments and a "suffix" string from its manifest; pass the command-line arguments to the SwReporter when it's launched, and append the suffix to all histograms it logs to distinguish them from reports from the default reporter. BUG=631480 Committed: https://crrev.com/b4b1fb47a28f8c3558ac10cb04be327fa7e228ae Cr-Commit-Position: refs/heads/master@{#414606}

Patch Set 1 #

Total comments: 40

Patch Set 2 : Address sorin's review comments and simplify empty suffix handling #

Total comments: 2

Patch Set 3 : Address grt's review comments #

Total comments: 2

Patch Set 4 : enabled -> supported #

Total comments: 46

Patch Set 5 : Sample is a simple typedef, it doesn't need to be templated #

Patch Set 6 : Address csharp's review comments. Change handling of empty "suffix" and "arguments" manifest keys. #

Total comments: 6

Patch Set 7 : Simplify comment #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+916 lines, -86 lines) Patch
M chrome/browser/component_updater/sw_reporter_installer_win.h View 1 2 3 4 5 3 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 1 2 3 4 5 6 10 chunks +158 lines, -8 lines 8 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc View 1 2 3 4 5 4 chunks +557 lines, -17 lines 0 comments Download
M chrome/browser/safe_browsing/srt_fetcher_win.h View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/srt_fetcher_win.cc View 1 2 3 4 5 15 chunks +147 lines, -57 lines 2 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (12 generated)
Joe Mason
sorin: PTAL the component_updater changes. jialiul: PTAL the safe_browsing changes. This is a followup to ...
4 years, 3 months ago (2016-08-25 02:26:48 UTC) #3
Joe Mason
sorin: PTAL the component_updater changes. jialiul: PTAL the safe_browsing changes. This is a followup to ...
4 years, 3 months ago (2016-08-25 02:26:49 UTC) #4
Jialiu Lin
lgtm on chrome/browser/safe_browsing/*
4 years, 3 months ago (2016-08-25 03:01:26 UTC) #7
Sorin Jianu
Thank you! https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode43 chrome/browser/component_updater/sw_reporter_installer_win.cc:43: #include "third_party/re2/src/re2/re2.h" I suggest checking with brettw@ ...
4 years, 3 months ago (2016-08-25 03:04:30 UTC) #8
Joe Mason
Thanks for the quick responses! https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode43 chrome/browser/component_updater/sw_reporter_installer_win.cc:43: #include "third_party/re2/src/re2/re2.h" On 2016/08/25 ...
4 years, 3 months ago (2016-08-25 13:43:28 UTC) #9
grt (UTC plus 2)
Since preliminary comments. Will take another look tomorrow. https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode125 chrome/browser/component_updater/sw_reporter_installer_win.cc:125: constexpr ...
4 years, 3 months ago (2016-08-25 15:42:13 UTC) #10
grt (UTC plus 2)
https://codereview.chromium.org/2278013002/diff/1/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2278013002/diff/1/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode223 chrome/browser/safe_browsing/srt_fetcher_win.cc:223: KEY_ALL_ACCESS); Can you get by with just query and ...
4 years, 3 months ago (2016-08-25 15:48:37 UTC) #11
Joe Mason
https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode43 chrome/browser/component_updater/sw_reporter_installer_win.cc:43: #include "third_party/re2/src/re2/re2.h" On 2016/08/25 13:43:28, Joe Mason wrote: > ...
4 years, 3 months ago (2016-08-25 15:50:05 UTC) #12
Joe Mason
On 2016/08/25 15:42:13, grt (UTC plus 2) wrote: > Since preliminary comments. Will take another ...
4 years, 3 months ago (2016-08-25 15:58:24 UTC) #13
Joe Mason
https://codereview.chromium.org/2278013002/diff/1/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2278013002/diff/1/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode279 chrome/browser/safe_browsing/srt_fetcher_win.cc:279: base::win::RegKey scan_times_key( On 2016/08/25 15:48:37, grt (UTC plus 2) ...
4 years, 3 months ago (2016-08-25 16:00:09 UTC) #14
Joe Mason
https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode140 chrome/browser/component_updater/sw_reporter_installer_win.cc:140: // Read the command-line params and an UMA histogram ...
4 years, 3 months ago (2016-08-25 17:52:59 UTC) #15
jwd
https://codereview.chromium.org/2278013002/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode417 chrome/browser/component_updater/sw_reporter_installer_win.cc:417: const bool is_experimental_engine_enabled = Can you change this to ...
4 years, 3 months ago (2016-08-25 17:53:56 UTC) #16
Joe Mason
https://codereview.chromium.org/2278013002/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode417 chrome/browser/component_updater/sw_reporter_installer_win.cc:417: const bool is_experimental_engine_enabled = On 2016/08/25 17:53:55, jwd wrote: ...
4 years, 3 months ago (2016-08-25 18:07:17 UTC) #17
Joe Mason
On 2016/08/25 15:58:24, Joe Mason wrote: > On 2016/08/25 15:42:13, grt (UTC plus 2) wrote: ...
4 years, 3 months ago (2016-08-25 18:09:45 UTC) #18
Sorin Jianu
lgtm Thank you! component_updater paths lgtm https://codereview.chromium.org/2278013002/diff/60001/chrome/browser/component_updater/sw_reporter_installer_win.h File chrome/browser/component_updater/sw_reporter_installer_win.h (right): https://codereview.chromium.org/2278013002/diff/60001/chrome/browser/component_updater/sw_reporter_installer_win.h#newcode68 chrome/browser/component_updater/sw_reporter_installer_win.h:68: // Returns true ...
4 years, 3 months ago (2016-08-25 18:15:40 UTC) #19
Joe Mason
Thanks for the quick response! I'll also wait for csharp to weigh in before committing. ...
4 years, 3 months ago (2016-08-25 18:18:39 UTC) #20
jwd
https://codereview.chromium.org/2278013002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2278013002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode330 chrome/browser/safe_browsing/srt_fetcher_win.cc:330: template <typename SampleType> Do these need to be templated ...
4 years, 3 months ago (2016-08-25 18:20:53 UTC) #21
Joe Mason
On 2016/08/25 15:48:37, grt (UTC plus 2) wrote: > https://codereview.chromium.org/2278013002/diff/1/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode279 > chrome/browser/safe_browsing/srt_fetcher_win.cc:279: base::win::RegKey > scan_times_key( ...
4 years, 3 months ago (2016-08-25 18:58:03 UTC) #22
Joe Mason
https://codereview.chromium.org/2278013002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2278013002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode330 chrome/browser/safe_browsing/srt_fetcher_win.cc:330: template <typename SampleType> On 2016/08/25 18:20:53, jwd wrote: > ...
4 years, 3 months ago (2016-08-25 19:04:57 UTC) #23
csharp
https://codereview.chromium.org/2278013002/diff/60001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/60001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode128 chrome/browser/component_updater/sw_reporter_installer_win.cc:128: constexpr base::Feature kExperimentalEngineFeature{ The constants and enum can probably ...
4 years, 3 months ago (2016-08-25 19:47:29 UTC) #24
jwd
histograms and metrics LGTM
4 years, 3 months ago (2016-08-25 21:40:31 UTC) #25
jwd
also feature and variations stuff LGTM ("histograms and metrics" was a mistake, not sure if ...
4 years, 3 months ago (2016-08-25 21:41:18 UTC) #26
Joe Mason
sorin: can you look again since I made some changes since your review? Thanks! https://codereview.chromium.org/2278013002/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc ...
4 years, 3 months ago (2016-08-25 22:03:20 UTC) #27
Sorin Jianu
lgtm ty!
4 years, 3 months ago (2016-08-25 22:15:13 UTC) #30
csharp
lgtm https://codereview.chromium.org/2278013002/diff/90001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/90001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode153 chrome/browser/component_updater/sw_reporter_installer_win.cc:153: // On the first startup after a user ...
4 years, 3 months ago (2016-08-25 22:28:14 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2278013002/110001
4 years, 3 months ago (2016-08-25 23:16:00 UTC) #35
Joe Mason
https://codereview.chromium.org/2278013002/diff/90001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/90001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode153 chrome/browser/component_updater/sw_reporter_installer_win.cc:153: // On the first startup after a user is ...
4 years, 3 months ago (2016-08-25 23:17:00 UTC) #36
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years, 3 months ago (2016-08-26 01:00:28 UTC) #38
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/b4b1fb47a28f8c3558ac10cb04be327fa7e228ae Cr-Commit-Position: refs/heads/master@{#414606}
4 years, 3 months ago (2016-08-26 01:01:50 UTC) #40
grt (UTC plus 2)
https://codereview.chromium.org/2278013002/diff/110001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2278013002/diff/110001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode146 chrome/browser/component_updater/sw_reporter_installer_win.cc:146: // Reads the command-line params and an UMA histogram ...
4 years, 3 months ago (2016-08-26 10:31:56 UTC) #41
rkaplow
https://codereview.chromium.org/2278013002/diff/110001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2278013002/diff/110001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode356 chrome/browser/safe_browsing/srt_fetcher_win.cc:356: auto histogram = base::LinearHistogram::FactoryGet( this is incorrect - this ...
4 years, 2 months ago (2016-09-30 18:43:11 UTC) #43
Joe Mason
4 years, 2 months ago (2016-09-30 20:35:39 UTC) #44
Message was sent while issue was closed.
https://codereview.chromium.org/2278013002/diff/110001/chrome/browser/safe_br...
File chrome/browser/safe_browsing/srt_fetcher_win.cc (right):

https://codereview.chromium.org/2278013002/diff/110001/chrome/browser/safe_br...
chrome/browser/safe_browsing/srt_fetcher_win.cc:356: auto histogram =
base::LinearHistogram::FactoryGet(
On 2016/09/30 18:43:10, rkaplow wrote:
> this is incorrect - this is switching your memory macro (which used to be a
> regular counts macro), to a linear histogram.
> 
> Currently the data is a bit mixed up

Thanks! Filed http://crbug.com/651903.

Powered by Google App Engine
This is Rietveld 408576698