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

Issue 2780873002: Basic IPC communication between Chrome and the SW Reporter. (Closed)

Created:
3 years, 8 months ago by ftirelo
Modified:
3 years, 8 months ago
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Basic IPC communication between Chrome and the SW Reporter. Note to reviewers: errors and crashes in the child process as well as other boundary conditions will be handled in follow-up CLs, so we can unblock people working on the new UI. Same for the cleanup of switches/constants shared between the Chromium and the SwReporter repos. BUG=690020 Review-Url: https://codereview.chromium.org/2780873002 Cr-Commit-Position: refs/heads/master@{#463784} Committed: https://chromium.googlesource.com/chromium/src/+/6a532063ea0cd85c3934bcbf19037dc87a57abeb

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Rebase #

Total comments: 40

Patch Set 4 : DEPS #

Patch Set 5 : First round of reviews #

Total comments: 12

Patch Set 6 : More reviews #

Patch Set 7 : Fixes compilation error #

Total comments: 2

Patch Set 8 : Multiprocess browser tests #

Patch Set 9 : Rebase #

Patch Set 10 : RefCounted -> RefCountedThreadSafe #

Patch Set 11 : Browser tests #

Patch Set 12 : Comments and cleanup #

Patch Set 13 : Addressing previous code review comments #

Patch Set 14 : Remove debug code #

Patch Set 15 : Fix const/constexpr error #

Total comments: 18

Patch Set 16 : More reviews #

Total comments: 20

Patch Set 17 : alito@'s comments #

Total comments: 2

Patch Set 18 : Rebase #

Patch Set 19 : More reviews #

Patch Set 20 : Fix typo #

Total comments: 10

Patch Set 21 : Non-trivial destructor in .cc file #

Patch Set 22 : OWNERS reviews #

Patch Set 23 : RefCounted subclasses can't have public destructors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -59 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/srt_chrome_prompt_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/srt_chrome_prompt_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +30 lines, -0 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 17 18 19 17 chunks +251 lines, -40 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 3 chunks +15 lines, -1 line 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 14 15 16 17 18 19 20 21 22 10 chunks +177 lines, -18 lines 0 comments Download

Messages

Total messages: 53 (22 generated)
ftirelo
Hi all. This version sets up an IPC channel in Chrome for the reporter and ...
3 years, 8 months ago (2017-03-28 21:30:41 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h File chrome/browser/safe_browsing/srt_chrome_prompt_impl.h (right): https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h#newcode8 chrome/browser/safe_browsing/srt_chrome_prompt_impl.h:8: #include <vector> not needed since the only use of ...
3 years, 8 months ago (2017-03-29 13:01:43 UTC) #4
Joe Mason
https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode603 chrome/browser/safe_browsing/srt_fetcher_win.cc:603: std::unique_ptr<ChromePromptImpl> chrome_prompt_impl_; This file could use a comment ...
3 years, 8 months ago (2017-03-29 13:04:32 UTC) #5
Joe Mason
https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode177 chrome/browser/safe_browsing/srt_fetcher_win.cc:177: constexpr char kChromeMojoPipeTokenSwitch[] = "chrome-mojo-pipe-token"; On 2017/03/29 13:01:43, grt ...
3 years, 8 months ago (2017-03-29 13:31:01 UTC) #6
ftirelo
Thanks for the comments. PTAL before I start browser tests. https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h File chrome/browser/safe_browsing/srt_chrome_prompt_impl.h (right): https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h#newcode8 ...
3 years, 8 months ago (2017-03-30 22:13:52 UTC) #7
Joe Mason
Everything else looks fine to me. https://codereview.chromium.org/2780873002/diff/80001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2780873002/diff/80001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode585 chrome/browser/safe_browsing/srt_fetcher_win.cc:585: // - creation ...
3 years, 8 months ago (2017-03-31 08:06:23 UTC) #8
grt (UTC plus 2)
lgtm with nits https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode174 chrome/browser/safe_browsing/srt_fetcher_win.cc:174: const base::Feature kInBrowserCleanerUIFeature{ On 2017/03/30 22:13:51, ...
3 years, 8 months ago (2017-03-31 11:32:33 UTC) #9
ftirelo
https://codereview.chromium.org/2780873002/diff/80001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2780873002/diff/80001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode577 chrome/browser/safe_browsing/srt_fetcher_win.cc:577: // - created in the UI thread before the ...
3 years, 8 months ago (2017-03-31 16:37:37 UTC) #10
ftirelo
I'll start browser tests now.
3 years, 8 months ago (2017-03-31 16:37:47 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/2780873002/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2780873002/diff/120001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode964 chrome/browser/safe_browsing/srt_fetcher_win.cc:964: auto finished_invocation = sw_reporter_process->invocation(); nit: "const auto&"
3 years, 8 months ago (2017-03-31 21:27:28 UTC) #12
ftirelo
This is ready for final review. PTAnL https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc File chrome/browser/safe_browsing/srt_fetcher_win.cc (right): https://codereview.chromium.org/2780873002/diff/40001/chrome/browser/safe_browsing/srt_fetcher_win.cc#newcode174 chrome/browser/safe_browsing/srt_fetcher_win.cc:174: const base::Feature ...
3 years, 8 months ago (2017-04-06 15:29:25 UTC) #13
joenotcharles
https://codereview.chromium.org/2780873002/diff/280001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/280001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode8 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:8: #include <iterator> No longer needed (was used for std::begin ...
3 years, 8 months ago (2017-04-06 17:57:15 UTC) #19
joenotcharles
https://codereview.chromium.org/2780873002/diff/280001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/280001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode8 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:8: #include <iterator> No longer needed (was used for std::begin ...
3 years, 8 months ago (2017-04-06 17:57:15 UTC) #20
ftirelo
PTAnL https://codereview.chromium.org/2780873002/diff/280001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/280001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode8 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:8: #include <iterator> On 2017/04/06 17:57:15, joenotcharles wrote: > ...
3 years, 8 months ago (2017-04-06 20:41:48 UTC) #21
alito
Just a couple of minor questions. https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode96 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:96: // the prompt ...
3 years, 8 months ago (2017-04-06 21:13:27 UTC) #24
joenotcharles
https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode167 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:167: base::MessageLoop message_loop; On 2017/04/06 21:13:26, alito wrote: > Is ...
3 years, 8 months ago (2017-04-06 21:21:07 UTC) #25
ftirelo
https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode96 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:96: // the prompt accepted returned by the parent process ...
3 years, 8 months ago (2017-04-06 21:27:09 UTC) #26
alito
lgtm https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode167 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:167: base::MessageLoop message_loop; On 2017/04/06 21:21:06, joenotcharles wrote: > ...
3 years, 8 months ago (2017-04-06 21:27:45 UTC) #27
joenotcharles
lgtm with nits https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode62 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:62: // This should never passed as ...
3 years, 8 months ago (2017-04-06 21:41:56 UTC) #28
robertshield
quick-drive by thought (lgtm, otherwise) https://codereview.chromium.org/2780873002/diff/320001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h File chrome/browser/safe_browsing/srt_chrome_prompt_impl.h (right): https://codereview.chromium.org/2780873002/diff/320001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h#newcode21 chrome/browser/safe_browsing/srt_chrome_prompt_impl.h:21: bool elevation_required, maybe in ...
3 years, 8 months ago (2017-04-07 02:04:58 UTC) #29
ftirelo
https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc File chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc (right): https://codereview.chromium.org/2780873002/diff/300001/chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc#newcode62 chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc:62: // This should never passed as the expected exit ...
3 years, 8 months ago (2017-04-07 14:57:04 UTC) #30
ftirelo
+rockot for Mojo OWNERS.
3 years, 8 months ago (2017-04-07 15:13:02 UTC) #32
Joe Mason
lgtm
3 years, 8 months ago (2017-04-07 15:22:52 UTC) #33
Fabio Tirelo
+jialiul for OWNERS approval.
3 years, 8 months ago (2017-04-10 15:18:59 UTC) #37
Jialiu Lin
LGTM for c/b/safe_browsing/ I didn't review these browser tests very closely. I rely on other ...
3 years, 8 months ago (2017-04-10 17:32:54 UTC) #40
Ken Rockot(use gerrit already)
Mojo stuff LGTM https://codereview.chromium.org/2780873002/diff/380001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h File chrome/browser/safe_browsing/srt_chrome_prompt_impl.h (right): https://codereview.chromium.org/2780873002/diff/380001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h#newcode17 chrome/browser/safe_browsing/srt_chrome_prompt_impl.h:17: ~ChromePromptImpl() override = default; nit: (compiler ...
3 years, 8 months ago (2017-04-10 21:44:40 UTC) #41
ftirelo
Thanks for the reviews! https://codereview.chromium.org/2780873002/diff/380001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h File chrome/browser/safe_browsing/srt_chrome_prompt_impl.h (right): https://codereview.chromium.org/2780873002/diff/380001/chrome/browser/safe_browsing/srt_chrome_prompt_impl.h#newcode17 chrome/browser/safe_browsing/srt_chrome_prompt_impl.h:17: ~ChromePromptImpl() override = default; On ...
3 years, 8 months ago (2017-04-11 17:31:43 UTC) #42
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/2780873002/420001
3 years, 8 months ago (2017-04-11 17:32:45 UTC) #45
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/269391)
3 years, 8 months ago (2017-04-11 18:32:35 UTC) #47
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/2780873002/440001
3 years, 8 months ago (2017-04-11 20:27:46 UTC) #50
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 21:48:36 UTC) #53
Message was sent while issue was closed.
Committed patchset #23 (id:440001) as
https://chromium.googlesource.com/chromium/src/+/6a532063ea0cd85c3934bcbf1903...

Powered by Google App Engine
This is Rietveld 408576698