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

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

Created:
4 years, 4 months ago by Joe Mason
Modified:
4 years, 3 months ago
CC:
asvitkine+watch_chromium.org, chromium-reviews, grt+watch_chromium.org, pmbureau_google.com, robertshield, waffles
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. BUG=631480 Committed: https://crrev.com/ee23242de188390b43ab84535c9b66bccb823c32 Cr-Commit-Position: refs/heads/master@{#418578}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move regexps to local vars #

Total comments: 42

Patch Set 3 : Refactor, split some prep work into a different patch #

Total comments: 2

Patch Set 4 : Rebase and refactor #

Patch Set 5 : Fix case of flags constants #

Total comments: 24

Patch Set 6 : Address review comments #

Patch Set 7 : Remove unrelated patch I accidentally committed #

Total comments: 25

Patch Set 8 : Fix comments, compare Time values directly, Rename invocations_ and Run for clarity #

Patch Set 9 : Keep explicit current_invocations queue, rename LaunchNextInvocation, explicitly disallow RunSwRepo… #

Total comments: 2

Patch Set 10 : Comment on usage of TestPartialLaunchCycle. Always save the time of last run. Misc cleanups. #

Total comments: 17

Patch Set 11 : Tweak some comments, rename FLAG_LOG_TO_PREFS #

Patch Set 12 : Annotate leaking ReporterRunner #

Patch Set 13 : Rebase. Add FLAG_SEND_REPORTER_LOGS to turn off additional logging that was added upstream for the … #

Patch Set 14 : Initialise SwReporterInvocation flags to 0. DCHECK(version.IsValid()) #

Patch Set 15 : Fix clang error (sign vs unsigned comparison) #

Patch Set 16 : More clang errors #

Patch Set 17 : Set flags explicitly in srt_fetcher browsertest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+543 lines, -231 lines) Patch
M chrome/browser/component_updater/sw_reporter_installer_win.h View 1 2 3 6 7 8 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +78 lines, -60 lines 0 comments Download
M chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 12 chunks +99 lines, -19 lines 0 comments Download
M chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 13 chunks +198 lines, -48 lines 0 comments Download
M chrome/browser/safe_browsing/srt_fetcher_win.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +29 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/srt_fetcher_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 13 chunks +137 lines, -86 lines 0 comments Download

Messages

Total messages: 50 (17 generated)
Joe Mason
csharp: PTAL for the overall architecture. Still need to add tests and some error handling.
4 years, 4 months ago (2016-08-09 15:21:37 UTC) #2
Joe Mason
https://codereview.chromium.org/2226133005/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/2226133005/diff/1/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode216 chrome/browser/component_updater/sw_reporter_installer_win.cc:216: base::UTF8ToUTF16(suffix->second)); pmbureau: This is what I was talking about ...
4 years, 4 months ago (2016-08-09 15:24:26 UTC) #3
grt (UTC plus 2)
some drive-by comments https://codereview.chromium.org/2226133005/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/2226133005/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode118 chrome/browser/component_updater/sw_reporter_installer_win.cc:118: // The experiment is only enabled ...
4 years, 4 months ago (2016-08-10 06:47:02 UTC) #4
csharp
https://codereview.chromium.org/2226133005/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/2226133005/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode173 chrome/browser/component_updater/sw_reporter_installer_win.cc:173: re2::RE2 args_pattern("args(\\d+)"); What about pulling this args and suffix ...
4 years, 4 months ago (2016-08-11 18:58:02 UTC) #5
Joe Mason
https://codereview.chromium.org/2226133005/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/2226133005/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode118 chrome/browser/component_updater/sw_reporter_installer_win.cc:118: // The experiment is only enabled on x86. Finch ...
4 years, 4 months ago (2016-08-15 17:24:40 UTC) #6
grt (UTC plus 2)
https://codereview.chromium.org/2226133005/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/2226133005/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode161 chrome/browser/component_updater/sw_reporter_installer_win.cc:161: std::vector<safe_browsing::SwReporterInvocation> invocations; On 2016/08/15 17:24:39, Joe Mason wrote: > ...
4 years, 4 months ago (2016-08-15 19:39:40 UTC) #8
csharp
Has this been rebased onto of the code that has already been landed? And should ...
4 years, 3 months ago (2016-08-30 13:42:50 UTC) #9
Joe Mason
On 2016/08/30 13:42:50, csharp wrote: > Has this been rebased onto of the code that ...
4 years, 3 months ago (2016-08-30 13:57:25 UTC) #10
Joe Mason
PTAL. This is a followup to https://codereview.chromium.org/2278013002 that I committed last week, with these changes: ...
4 years, 3 months ago (2016-08-31 19:29:15 UTC) #12
Sorin Jianu
lgtm Thank you! I made two optional comments if you'd like to consider addressing. https://codereview.chromium.org/2226133005/diff/80001/chrome/browser/component_updater/sw_reporter_installer_win_unittest.cc ...
4 years, 3 months ago (2016-09-01 15:59:09 UTC) #15
grt (UTC plus 2)
a smattering of comments. i'll send more tomorrow. https://codereview.chromium.org/2226133005/diff/80001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2226133005/diff/80001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode183 chrome/browser/component_updater/sw_reporter_installer_win.cc:183: if ...
4 years, 3 months ago (2016-09-01 21:08:56 UTC) #16
Joe Mason
https://codereview.chromium.org/2226133005/diff/80001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2226133005/diff/80001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode183 chrome/browser/component_updater/sw_reporter_installer_win.cc:183: if (!invocation_params->Get("suffix", &suffix_value) || On 2016/09/01 21:08:55, grt (UTC ...
4 years, 3 months ago (2016-09-02 02:24:31 UTC) #17
grt (UTC plus 2)
https://codereview.chromium.org/2226133005/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2226133005/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode587 chrome/browser/safe_browsing/srt_fetcher_win.cc:587: // This class tries to run the reporter and ...
4 years, 3 months ago (2016-09-02 10:19:58 UTC) #18
Joe Mason
https://codereview.chromium.org/2226133005/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2226133005/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode587 chrome/browser/safe_browsing/srt_fetcher_win.cc:587: // This class tries to run the reporter and ...
4 years, 3 months ago (2016-09-02 21:14:35 UTC) #19
grt (UTC plus 2)
https://codereview.chromium.org/2226133005/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2226133005/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode603 chrome/browser/safe_browsing/srt_fetcher_win.cc:603: if (instance_->invocations_ && *instance_->invocations_ == *invocations && On 2016/09/02 ...
4 years, 3 months ago (2016-09-04 10:35:44 UTC) #20
macourteau
(I took care of patch set #9 while joenotcharles@ was OOO) https://codereview.chromium.org/2226133005/diff/20001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): ...
4 years, 3 months ago (2016-09-12 19:53:14 UTC) #22
Joe Mason
sorin@ - can you re-review component_updater/ since it's been updated since your lgtm? jialiul@ - ...
4 years, 3 months ago (2016-09-12 20:23:21 UTC) #23
Jialiu Lin
lgtm with a minor nit https://codereview.chromium.org/2226133005/diff/160001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2226133005/diff/160001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode81 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:81: void TestPartialLaunchCycle( nit: maybe ...
4 years, 3 months ago (2016-09-12 20:55:13 UTC) #24
Joe Mason
This patch includes one important bugfix: kSwReporterLastTimeTriggered is not actually a result of the reporter, ...
4 years, 3 months ago (2016-09-12 23:33:29 UTC) #25
grt (UTC plus 2)
lgtm https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode600 chrome/browser/safe_browsing/srt_fetcher_win.cc:600: instance_ = new ReporterRunner; since this is intentionally ...
4 years, 3 months ago (2016-09-13 06:32:25 UTC) #26
csharp
https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode147 chrome/browser/component_updater/sw_reporter_installer_win.cc:147: // and launch the SwReporter with those parameters. If ...
4 years, 3 months ago (2016-09-13 17:09:03 UTC) #27
Joe Mason
https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/component_updater/sw_reporter_installer_win.cc File chrome/browser/component_updater/sw_reporter_installer_win.cc (right): https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/component_updater/sw_reporter_installer_win.cc#newcode147 chrome/browser/component_updater/sw_reporter_installer_win.cc:147: // and launch the SwReporter with those parameters. If ...
4 years, 3 months ago (2016-09-13 19:24:55 UTC) #28
grt (UTC plus 2)
https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode746 chrome/browser/safe_browsing/srt_fetcher_win.cc:746: DCHECK(first_run_); On 2016/09/13 19:24:54, Joe Mason wrote: > On ...
4 years, 3 months ago (2016-09-13 19:47:22 UTC) #29
Joe Mason
https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2226133005/diff/180001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode746 chrome/browser/safe_browsing/srt_fetcher_win.cc:746: DCHECK(first_run_); On 2016/09/13 19:47:22, grt (UTC plus 2) wrote: ...
4 years, 3 months ago (2016-09-13 21:34:42 UTC) #30
Sorin Jianu
lgtm Thank you!
4 years, 3 months ago (2016-09-13 22:53:44 UTC) #31
grt (UTC plus 2)
still lgtm. thanks.
4 years, 3 months ago (2016-09-14 10:48:22 UTC) #32
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/2226133005/250001
4 years, 3 months ago (2016-09-14 12:24:02 UTC) #35
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/2226133005/270001
4 years, 3 months ago (2016-09-14 13:13:14 UTC) #38
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/2226133005/290001
4 years, 3 months ago (2016-09-14 13:47:40 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/279559)
4 years, 3 months ago (2016-09-14 15:12:27 UTC) #43
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/2226133005/310001
4 years, 3 months ago (2016-09-14 15:20:06 UTC) #46
commit-bot: I haz the power
Committed patchset #17 (id:310001)
4 years, 3 months ago (2016-09-14 16:17:03 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 16:20:44 UTC) #50
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/ee23242de188390b43ab84535c9b66bccb823c32
Cr-Commit-Position: refs/heads/master@{#418578}

Powered by Google App Engine
This is Rietveld 408576698