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

Issue 2705613003: Convert utility process zip creator IPC to mojo (Closed)

Created:
3 years, 10 months ago by Noel Gordon
Modified:
3 years, 9 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, darin (slow to review), darin-cc_chromium.org, davemoore+watch_chromium.org, fukino+watch_chromium.org, jam, oka+watch_chromium.org, oshima+watch_chromium.org, qsr+mojo_chromium.org, rginda+watch_chromium.org, viettrungluu+watch_chromium.org, yamaguchi+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert utility process zip creator IPC to mojo Convert the OS_CHROMEOS-only zip creator IPC to use mojo rather than IPC. Expose the mojo to the browser process using the mojo utility process policy file. Update the client to call the mojo service using a mojo utility client, remove all dependencies on UtilityProcessHostClient. Add a new mojo utility client api: utility_process_mojo_client_->set_exposed_directory(dir) to allow mojo utility clients to expose the target directory in the utility process sandbox just like UtilityProcessHostClient. Minor name changes, no abbrvs. Now in chrome/utility/chrome_content_utility_client.cc continue the saga of deleting the Send and ReleaseProcessIfNeeded helper routines: make remaining users call these services directly and remove the helpers. Add the mojo ZipFileCreatorImpl class. Covered by existing tests: ZipFileCreatorTest.SomeFilesZip, per https://codereview.chromium.org/2703463005 BUG=597124 Review-Url: https://codereview.chromium.org/2705613003 Cr-Commit-Position: refs/heads/master@{#453825} Committed: https://chromium.googlesource.com/chromium/src/+/b8721b0aa68a020f092aede9b18b33389ed24e8f

Patch Set 1 : Check it builds. #

Patch Set 2 : Make it .reset() to fix chrome-os build. #

Patch Set 3 : Change mojo API to CreateZipFile(). #

Patch Set 4 : Update mojo utility client: add set_exposed_directory() service. #

Patch Set 5 : Update mojo utility client (fix patch apply failure). #

Patch Set 6 : git cl try again. #

Total comments: 2

Patch Set 7 : Nix some comments. #

Patch Set 8 : base::Callback converts to bool. #

Total comments: 6

Patch Set 9 : Make it source_dir. #

Patch Set 10 : Better callbacking, remove unsed #include. #

Total comments: 4

Patch Set 11 : Add if ( is_chromeos ) block to BUILD.gn. #

Total comments: 4

Patch Set 12 : Add a comment about release references. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+142 lines, -174 lines) Patch
M chrome/browser/chrome_content_utility_manifest_overlay.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/zip_file_creator.h View 1 2 3 3 chunks +18 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/file_manager/zip_file_creator.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +22 lines, -55 lines 1 comment Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_utility_messages.h View 2 chunks +0 lines, -16 lines 0 comments Download
A chrome/common/zip_file_creator.mojom View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.h View 4 chunks +1 line, -18 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 10 chunks +52 lines, -51 lines 0 comments Download
M content/public/browser/utility_process_mojo_client.h View 1 2 3 7 chunks +25 lines, -9 lines 0 comments Download

Messages

Total messages: 87 (64 generated)
Noel Gordon
PTAL + Sam, tibell for mojo + Daniel for IPC sec + jochen for OWNERS
3 years, 10 months ago (2017-02-22 11:12:36 UTC) #33
tibell
lgtm https://codereview.chromium.org/2705613003/diff/120001/chrome/common/zip_file_creator.mojom File chrome/common/zip_file_creator.mojom (right): https://codereview.chromium.org/2705613003/diff/120001/chrome/common/zip_file_creator.mojom#newcode15 chrome/common/zip_file_creator.mojom:15: CreateZipFile(mojo.common.mojom.FilePath source, Nit: |source_dir| might be clearer than ...
3 years, 10 months ago (2017-02-23 02:15:50 UTC) #44
Noel Gordon
https://codereview.chromium.org/2705613003/diff/120001/chrome/common/zip_file_creator.mojom File chrome/common/zip_file_creator.mojom (right): https://codereview.chromium.org/2705613003/diff/120001/chrome/common/zip_file_creator.mojom#newcode15 chrome/common/zip_file_creator.mojom:15: CreateZipFile(mojo.common.mojom.FilePath source, On 2017/02/23 02:15:50, tibell wrote: > Nit: ...
3 years, 10 months ago (2017-02-23 02:40:13 UTC) #46
Sam McNally
https://codereview.chromium.org/2705613003/diff/160001/chrome/browser/chromeos/file_manager/zip_file_creator.cc File chrome/browser/chromeos/file_manager/zip_file_creator.cc (right): https://codereview.chromium.org/2705613003/diff/160001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode11 chrome/browser/chromeos/file_manager/zip_file_creator.cc:11: #include "base/message_loop/message_loop.h" Remove. https://codereview.chromium.org/2705613003/diff/160001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode79 chrome/browser/chromeos/file_manager/zip_file_creator.cc:79: utility_process_mojo_client_.reset(); Make this auto ...
3 years, 10 months ago (2017-02-23 02:43:47 UTC) #47
Noel Gordon
New patch uploaded ... https://codereview.chromium.org/2705613003/diff/160001/chrome/browser/chromeos/file_manager/zip_file_creator.cc File chrome/browser/chromeos/file_manager/zip_file_creator.cc (right): https://codereview.chromium.org/2705613003/diff/160001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode11 chrome/browser/chromeos/file_manager/zip_file_creator.cc:11: #include "base/message_loop/message_loop.h" On 2017/02/23 02:43:47, ...
3 years, 10 months ago (2017-02-23 02:59:48 UTC) #48
Sam McNally
lgtm
3 years, 10 months ago (2017-02-23 03:05:36 UTC) #51
jochen (gone - plz use gerrit)
lgtm
3 years, 10 months ago (2017-02-24 15:57:28 UTC) #56
dcheng
https://codereview.chromium.org/2705613003/diff/200001/chrome/browser/chrome_content_utility_manifest_overlay.json File chrome/browser/chrome_content_utility_manifest_overlay.json (right): https://codereview.chromium.org/2705613003/diff/200001/chrome/browser/chrome_content_utility_manifest_overlay.json#newcode11 chrome/browser/chrome_content_utility_manifest_overlay.json:11: "chrome::mojom::ZipFileCreator", I've been thinking... shouldn't this be in a ...
3 years, 10 months ago (2017-02-24 19:16:36 UTC) #57
Noel Gordon
https://codereview.chromium.org/2705613003/diff/200001/chrome/browser/chrome_content_utility_manifest_overlay.json File chrome/browser/chrome_content_utility_manifest_overlay.json (right): https://codereview.chromium.org/2705613003/diff/200001/chrome/browser/chrome_content_utility_manifest_overlay.json#newcode11 chrome/browser/chrome_content_utility_manifest_overlay.json:11: "chrome::mojom::ZipFileCreator", On 2017/02/24 19:16:35, dcheng wrote: > I've been ...
3 years, 9 months ago (2017-02-27 02:58:08 UTC) #60
Noel Gordon
Ahem: Overlays are a developer _pain point_, so the fewer ...
3 years, 9 months ago (2017-02-27 11:27:49 UTC) #63
dcheng
lgtm I guess I'll ask about the overlay thing on chromium-mojo. Can you elaborate why ...
3 years, 9 months ago (2017-02-28 06:22:18 UTC) #64
Noel Gordon
On 2017/02/28 06:22:18, dcheng wrote: > lgtm > > I guess I'll ask about the ...
3 years, 9 months ago (2017-02-28 10:30:59 UTC) #65
Noel Gordon
https://codereview.chromium.org/2705613003/diff/220001/chrome/browser/chromeos/file_manager/zip_file_creator.cc File chrome/browser/chromeos/file_manager/zip_file_creator.cc (right): https://codereview.chromium.org/2705613003/diff/220001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode78 chrome/browser/chromeos/file_manager/zip_file_creator.cc:78: auto callback = base::ResetAndReturn(&callback_); On 2017/02/28 06:22:17, dcheng wrote: ...
3 years, 9 months ago (2017-02-28 10:40:12 UTC) #66
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/2705613003/220001
3 years, 9 months ago (2017-02-28 10:40:49 UTC) #69
dcheng
https://codereview.chromium.org/2705613003/diff/220001/chrome/browser/chromeos/file_manager/zip_file_creator.cc File chrome/browser/chromeos/file_manager/zip_file_creator.cc (right): https://codereview.chromium.org/2705613003/diff/220001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode78 chrome/browser/chromeos/file_manager/zip_file_creator.cc:78: auto callback = base::ResetAndReturn(&callback_); On 2017/02/28 10:40:12, noel gordon ...
3 years, 9 months ago (2017-02-28 10:56:44 UTC) #70
Noel Gordon
https://codereview.chromium.org/2705613003/diff/220001/chrome/browser/chromeos/file_manager/zip_file_creator.cc File chrome/browser/chromeos/file_manager/zip_file_creator.cc (right): https://codereview.chromium.org/2705613003/diff/220001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode78 chrome/browser/chromeos/file_manager/zip_file_creator.cc:78: auto callback = base::ResetAndReturn(&callback_); On 2017/02/28 10:56:44, dcheng wrote: ...
3 years, 9 months ago (2017-02-28 13:10:53 UTC) #72
dcheng
still lgtm
3 years, 9 months ago (2017-03-01 01:32:39 UTC) #77
Noel Gordon
https://codereview.chromium.org/2705613003/diff/240001/chrome/browser/chromeos/file_manager/zip_file_creator.cc File chrome/browser/chromeos/file_manager/zip_file_creator.cc (right): https://codereview.chromium.org/2705613003/diff/240001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode80 chrome/browser/chromeos/file_manager/zip_file_creator.cc:80: // and delete |this|. So save |callback_| before resetting ...
3 years, 9 months ago (2017-03-01 03:22:47 UTC) #78
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/2705613003/240001
3 years, 9 months ago (2017-03-01 03:24:13 UTC) #81
commit-bot: I haz the power
Committed patchset #12 (id:240001) as https://chromium.googlesource.com/chromium/src/+/b8721b0aa68a020f092aede9b18b33389ed24e8f
3 years, 9 months ago (2017-03-01 03:29:33 UTC) #84
Noel Gordon
On 2017/03/01 03:22:47, noel gordon wrote: > https://codereview.chromium.org/2705613003/diff/240001/chrome/browser/chromeos/file_manager/zip_file_creator.cc > File chrome/browser/chromeos/file_manager/zip_file_creator.cc (right): > > https://codereview.chromium.org/2705613003/diff/240001/chrome/browser/chromeos/file_manager/zip_file_creator.cc#newcode80 ...
3 years, 9 months ago (2017-03-02 02:38:31 UTC) #85
Noel Gordon
On 2017/03/02 02:38:31, noel gordon wrote: > the comment is bunk. I will > upload ...
3 years, 9 months ago (2017-03-02 03:53:59 UTC) #86
Noel Gordon
3 years, 9 months ago (2017-03-03 02:00:54 UTC) #87
Message was sent while issue was closed.
On 2017/02/27 02:58:08, noel gordon wrote:
>
https://codereview.chromium.org/2705613003/diff/200001/chrome/browser/chrome_...
> File chrome/browser/chrome_content_utility_manifest_overlay.json (right):
> 
>
https://codereview.chromium.org/2705613003/diff/200001/chrome/browser/chrome_...
> chrome/browser/chrome_content_utility_manifest_overlay.json:11:
> "chrome::mojom::ZipFileCreator",
> On 2017/02/24 19:16:35, dcheng wrote:

>
https://codereview.chromium.org/2705613003/diff/200001/chrome/common/BUILD.gn...
> chrome/common/BUILD.gn:693: "zip_file_creator.mojom",
> On 2017/02/24 19:16:35, dcheng wrote:
> > Can we include this in a if (is_chromeos) block?
> 
> Done.

Downside here: I can't see the generated C++ bindings code in codesearch because
of the if (is_chomeos) block.  PITA.

Powered by Google App Engine
This is Rietveld 408576698