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

Issue 2932703006: Chrome Cleaner: Remove indirect base::FilePath mojo dependency. (Closed)

Created:
3 years, 6 months ago by proberge
Modified:
3 years, 6 months ago
CC:
chromium-reviews, vakh+watch_chromium.org, joenotcharles+watch_chromium.org, viettrungluu+watch_chromium.org, grt+watch_chromium.org, timvolodine, abarth-chromium, Aaron Boodman, yzshen+watch_chromium.org, csharp+watch_chromium.org, alito+watch_chromium.org, darin (slow to review), ftirelo+watch_chromium.org, qsr+mojo_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Chrome Cleaner: Remove indirect base::FilePath mojo dependency. The dependency on mojo.common.mojom.FilePath resolves to base::FilePath through a [Native] typemap. The Chrome cleaner is an independent binary whose version of base::FilePath will diverge from Chrome's base::FilePath, causing compatibility issues down the line. This will also allow the Chrome Cleaner project to set enable_mojom_typemapping to false. BUG= Review-Url: https://codereview.chromium.org/2932703006 Cr-Commit-Position: refs/heads/master@{#479471} Committed: https://chromium.googlesource.com/chromium/src/+/4d3b5c089c535512ac4c9f4b79f95f7f216454d3

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments, make tests pass #

Total comments: 4

Patch Set 3 : Add static assert #

Patch Set 4 : Add ifdef(OS_WIN) around string16->FilePath code #

Patch Set 5 : Add a typemap for Chromium to use #

Total comments: 4

Patch Set 6 : Address review comments on #5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -2 lines) Patch
M components/chrome_cleaner/public/interfaces/chrome_prompt.mojom View 1 2 3 4 3 chunks +13 lines, -2 lines 0 comments Download
A components/chrome_cleaner/public/typemaps/DEPS View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A components/chrome_cleaner/public/typemaps/OWNERS View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A components/chrome_cleaner/public/typemaps/chrome_prompt.typemap View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
A components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.h View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
A components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
M components/typemaps.gni View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 32 (12 generated)
proberge
3 years, 6 months ago (2017-06-12 13:44:48 UTC) #4
Fabio Tirelo
https://codereview.chromium.org/2932703006/diff/1/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc File chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc (right): https://codereview.chromium.org/2932703006/diff/1/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc#newcode47 chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc:47: std::vector<base::FilePath> file_paths; Instead of creating this vector to later ...
3 years, 6 months ago (2017-06-12 14:04:50 UTC) #6
proberge
The unit tests identified a mistake in my vector->file path logic. PTAL. https://codereview.chromium.org/2932703006/diff/1/chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc File chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.cc ...
3 years, 6 months ago (2017-06-12 17:49:30 UTC) #7
Fabio Tirelo
LGTM https://codereview.chromium.org/2932703006/diff/20001/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc File chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc (right): https://codereview.chromium.org/2932703006/diff/20001/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc#newcode204 chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc:204: std::vector<chrome_cleaner::mojom::FilePathPtr> files_to_delete; This only needs to be done ...
3 years, 6 months ago (2017-06-12 18:20:47 UTC) #8
csharp
lgtm
3 years, 6 months ago (2017-06-12 19:02:46 UTC) #9
proberge
https://codereview.chromium.org/2932703006/diff/20001/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc File chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc (right): https://codereview.chromium.org/2932703006/diff/20001/chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc#newcode204 chrome/browser/safe_browsing/chrome_cleaner/mock_chrome_cleaner_process_win.cc:204: std::vector<chrome_cleaner::mojom::FilePathPtr> files_to_delete; On 2017/06/12 18:20:46, Fabio Tirelo wrote: > ...
3 years, 6 months ago (2017-06-12 19:02:53 UTC) #10
proberge
++dcheng for chrome_prompt.mojom SECURITY_OWNERS. I would also appreciate if you could take a look at ...
3 years, 6 months ago (2017-06-12 19:11:05 UTC) #12
dcheng
The uint16 hijinks look fine, but maybe we can typemap this still so the serialization ...
3 years, 6 months ago (2017-06-12 21:12:51 UTC) #13
proberge
On 2017/06/12 21:12:51, dcheng wrote: > The uint16 hijinks look fine, but maybe we can ...
3 years, 6 months ago (2017-06-12 21:40:08 UTC) #14
dcheng
On 2017/06/12 21:40:08, proberge wrote: > On 2017/06/12 21:12:51, dcheng wrote: > > The uint16 ...
3 years, 6 months ago (2017-06-13 07:01:52 UTC) #15
proberge
> Does Chrome cleaner need to build independently of Chrome? Maybe we could just > ...
3 years, 6 months ago (2017-06-13 21:12:11 UTC) #16
proberge
@csharp, ftirelo Big changes, PTAL and explicitly re-LGTM.
3 years, 6 months ago (2017-06-13 21:13:10 UTC) #17
ftirelo
LGTM with a nit. https://codereview.chromium.org/2932703006/diff/80001/components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc File components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc (right): https://codereview.chromium.org/2932703006/diff/80001/components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc#newcode31 components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc:31: reinterpret_cast<const base::char16*>(view.data()), view.size())); Nit: could ...
3 years, 6 months ago (2017-06-13 23:29:29 UTC) #19
dcheng
https://codereview.chromium.org/2932703006/diff/80001/components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc File components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc (right): https://codereview.chromium.org/2932703006/diff/80001/components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc#newcode14 components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc:14: return std::vector<uint16_t>(file_path.value().begin(), I have bad news... this gets called ...
3 years, 6 months ago (2017-06-13 23:45:35 UTC) #20
proberge
Thanks for the review! ++blundell for components/typemaps.gni approval https://codereview.chromium.org/2932703006/diff/80001/components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc File components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc (right): https://codereview.chromium.org/2932703006/diff/80001/components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc#newcode14 components/chrome_cleaner/public/typemaps/chrome_prompt_struct_traits.cc:14: return ...
3 years, 6 months ago (2017-06-14 14:13:58 UTC) #22
csharp
lgtm
3 years, 6 months ago (2017-06-14 14:24:14 UTC) #23
dcheng
ipc lgtm. thanks!
3 years, 6 months ago (2017-06-14 17:44:15 UTC) #24
blundell
lgtm
3 years, 6 months ago (2017-06-14 18:05:27 UTC) #25
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/2932703006/100001
3 years, 6 months ago (2017-06-14 18:08:45 UTC) #28
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 19:44:57 UTC) #32
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/4d3b5c089c535512ac4c9f4b79f9...

Powered by Google App Engine
This is Rietveld 408576698