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

Issue 2115863002: Stub for ARC print Bridge (Closed)

Created:
4 years, 5 months ago by Sergey Poromov
Modified:
4 years, 4 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, yusukes+watch_chromium.org, droger+watchlist_chromium.org, viettrungluu+watch_chromium.org, blundell+watchlist_chromium.org, hidehiko+watch_chromium.org, sdefresne+watchlist_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, lhchavez+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, qsr+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stub for ARC print Bridge All change sets include: - http://crrev.com/2115863002 (Chromium) - http://ag/1191589 (Android device/google/cheets2) - http://ag/1191517 (Android platform/frameworks/base) BUG=625126 Committed: https://crrev.com/e8e78c2bf33201a83d1acc253f62a8493afac020 Cr-Commit-Position: refs/heads/master@{#408618}

Patch Set 1 #

Patch Set 2 : Stub for ARC print Bridge #

Total comments: 8

Patch Set 3 : Stub for ARC print Bridge #

Total comments: 4

Patch Set 4 : arc_bridge.mojom version update #

Patch Set 5 : arc_bridge.mojom version update #

Total comments: 22

Patch Set 6 : Fix build and cleanup arc_print_bridge code. #

Patch Set 7 : Fix build and cleanup arc_print_bridge code. #

Patch Set 8 : Move bridge code and run I/O on FILE thread. #

Patch Set 9 : Move bridge code and run I/O on FILE thread. #

Total comments: 20

Patch Set 10 : Rebase all. #

Patch Set 11 : RAII temp file #

Total comments: 10

Patch Set 12 : Rename ArcPrintBridge->ArcPrintService + some nits. #

Total comments: 9

Patch Set 13 : dcheng comments. #

Total comments: 2

Patch Set 14 : nit: parameter name #

Patch Set 15 : Rebase. #

Patch Set 16 : Rebase. #

Total comments: 6

Patch Set 17 : Use base::File instead of base:ScopedFD #

Patch Set 18 : Remove ScopedTempFile. #

Patch Set 19 : Remove unnecessary includes. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+173 lines, -1 line) Patch
A chrome/browser/chromeos/arc/arc_print_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/arc_print_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +100 lines, -0 lines 2 comments Download
M chrome/browser/chromeos/arc/arc_service_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M components/arc.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/arc_bridge_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M components/arc/arc_bridge_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download
M components/arc/common/arc_bridge.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -1 line 0 comments Download
A components/arc/common/print.mojom View 1 2 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (13 generated)
Luis Héctor Chávez
only leaving comments on the .mojom file to avoid reviewing the non-canonical copy in Android. ...
4 years, 5 months ago (2016-07-01 16:02:07 UTC) #3
Luis Héctor Chávez
missed two more .mojom-related things https://codereview.chromium.org/2115863002/diff/40001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/2115863002/diff/40001/components/arc/common/arc_bridge.mojom#newcode28 components/arc/common/arc_bridge.mojom:28: // Next MinVersion: 15 ...
4 years, 5 months ago (2016-07-06 17:09:43 UTC) #4
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/20001/components/arc/common/print.mojom File components/arc/common/print.mojom (right): https://codereview.chromium.org/2115863002/diff/20001/components/arc/common/print.mojom#newcode3 components/arc/common/print.mojom:3: // found in the LICENSE file. On 2016/07/01 16:02:07, ...
4 years, 5 months ago (2016-07-11 14:42:07 UTC) #6
Luis Héctor Chávez
https://codereview.chromium.org/2115863002/diff/80001/components/arc/print/arc_print_bridge.cc File components/arc/print/arc_print_bridge.cc (right): https://codereview.chromium.org/2115863002/diff/80001/components/arc/print/arc_print_bridge.cc#newcode43 components/arc/print/arc_print_bridge.cc:43: void ArcPrintBridge::Print(mojo::ScopedHandle file) { This function runs in the ...
4 years, 5 months ago (2016-07-11 18:27:53 UTC) #7
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/80001/components/arc/print/arc_print_bridge.cc File components/arc/print/arc_print_bridge.cc (right): https://codereview.chromium.org/2115863002/diff/80001/components/arc/print/arc_print_bridge.cc#newcode43 components/arc/print/arc_print_bridge.cc:43: void ArcPrintBridge::Print(mojo::ScopedHandle file) { On 2016/07/11 18:27:53, Luis Héctor ...
4 years, 5 months ago (2016-07-13 16:58:43 UTC) #8
Luis Héctor Chávez
https://codereview.chromium.org/2115863002/diff/160001/chrome/browser/chromeos/arc/arc_print_bridge.cc File chrome/browser/chromeos/arc/arc_print_bridge.cc (right): https://codereview.chromium.org/2115863002/diff/160001/chrome/browser/chromeos/arc/arc_print_bridge.cc#newcode27 chrome/browser/chromeos/arc/arc_print_bridge.cc:27: arc_bridge_service()->AddObserver(this); arc_bridge_service()->print()->AddObserver(this); https://codereview.chromium.org/2115863002/diff/160001/chrome/browser/chromeos/arc/arc_print_bridge.cc#newcode61 chrome/browser/chromeos/arc/arc_print_bridge.cc:61: scoped_platform_handle.release().handle), Ideally, make the base::ScopedFD ...
4 years, 5 months ago (2016-07-14 16:29:44 UTC) #9
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/160001/chrome/browser/chromeos/arc/arc_print_bridge.cc File chrome/browser/chromeos/arc/arc_print_bridge.cc (right): https://codereview.chromium.org/2115863002/diff/160001/chrome/browser/chromeos/arc/arc_print_bridge.cc#newcode27 chrome/browser/chromeos/arc/arc_print_bridge.cc:27: arc_bridge_service()->AddObserver(this); On 2016/07/14 16:29:43, Luis Héctor Chávez wrote: > ...
4 years, 5 months ago (2016-07-19 16:32:09 UTC) #10
Luis Héctor Chávez
final nits before approval. https://codereview.chromium.org/2115863002/diff/200001/chrome/browser/chromeos/arc/arc_print_bridge.cc File chrome/browser/chromeos/arc/arc_print_bridge.cc (right): https://codereview.chromium.org/2115863002/diff/200001/chrome/browser/chromeos/arc/arc_print_bridge.cc#newcode30 chrome/browser/chromeos/arc/arc_print_bridge.cc:30: // TODO(poromov) Delete file after ...
4 years, 5 months ago (2016-07-19 16:47:43 UTC) #11
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/200001/chrome/browser/chromeos/arc/arc_print_bridge.cc File chrome/browser/chromeos/arc/arc_print_bridge.cc (right): https://codereview.chromium.org/2115863002/diff/200001/chrome/browser/chromeos/arc/arc_print_bridge.cc#newcode30 chrome/browser/chromeos/arc/arc_print_bridge.cc:30: // TODO(poromov) Delete file after printing. On 2016/07/19 16:47:43, ...
4 years, 5 months ago (2016-07-20 15:08:16 UTC) #13
Luis Héctor Chávez
lgtm
4 years, 5 months ago (2016-07-20 19:15:16 UTC) #14
dcheng
https://codereview.chromium.org/2115863002/diff/220001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2115863002/diff/220001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode48 chrome/browser/chromeos/arc/arc_print_service.cc:48: while ((bytes = HANDLE_EINTR(read(fd.get(), buf, sizeof(buf)))) > 0) { ...
4 years, 5 months ago (2016-07-21 02:15:22 UTC) #15
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/220001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2115863002/diff/220001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode48 chrome/browser/chromeos/arc/arc_print_service.cc:48: while ((bytes = HANDLE_EINTR(read(fd.get(), buf, sizeof(buf)))) > 0) { ...
4 years, 5 months ago (2016-07-21 13:26:03 UTC) #16
dcheng
https://codereview.chromium.org/2115863002/diff/220001/chrome/browser/chromeos/arc/arc_print_service.h File chrome/browser/chromeos/arc/arc_print_service.h (right): https://codereview.chromium.org/2115863002/diff/220001/chrome/browser/chromeos/arc/arc_print_service.h#newcode25 chrome/browser/chromeos/arc/arc_print_service.h:25: void Print(mojo::ScopedHandle) override; On 2016/07/21 13:26:03, Sergey Poromov wrote: ...
4 years, 4 months ago (2016-07-25 06:36:30 UTC) #17
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/240001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2115863002/diff/240001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode45 chrome/browser/chromeos/arc/arc_print_service.cc:45: base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE); On 2016/07/25 06:36:30, dcheng wrote: > ...
4 years, 4 months ago (2016-07-25 13:04:11 UTC) #18
dcheng
On 2016/07/25 13:04:11, Sergey Poromov wrote: > https://codereview.chromium.org/2115863002/diff/240001/chrome/browser/chromeos/arc/arc_print_service.cc > File chrome/browser/chromeos/arc/arc_print_service.cc (right): > > https://codereview.chromium.org/2115863002/diff/240001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode45 ...
4 years, 4 months ago (2016-07-25 13:33:01 UTC) #19
Sergey Poromov
No, there is no design docs yet. We are still planning how to interact with ...
4 years, 4 months ago (2016-07-26 14:21:21 UTC) #20
dcheng
https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode40 chrome/browser/chromeos/arc/arc_print_service.cc:40: base::Optional<ScopedTempFile> SavePdf(base::ScopedFD fd) { It doesn't seem like there's ...
4 years, 4 months ago (2016-07-27 16:43:36 UTC) #21
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode40 chrome/browser/chromeos/arc/arc_print_service.cc:40: base::Optional<ScopedTempFile> SavePdf(base::ScopedFD fd) { On 2016/07/27 16:43:36, dcheng wrote: ...
4 years, 4 months ago (2016-07-27 18:24:41 UTC) #22
dcheng
https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode40 chrome/browser/chromeos/arc/arc_print_service.cc:40: base::Optional<ScopedTempFile> SavePdf(base::ScopedFD fd) { On 2016/07/27 18:24:41, Sergey Poromov ...
4 years, 4 months ago (2016-07-28 01:38:09 UTC) #23
Sergey Poromov
https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc File chrome/browser/chromeos/arc/arc_print_service.cc (right): https://codereview.chromium.org/2115863002/diff/300001/chrome/browser/chromeos/arc/arc_print_service.cc#newcode40 chrome/browser/chromeos/arc/arc_print_service.cc:40: base::Optional<ScopedTempFile> SavePdf(base::ScopedFD fd) { On 2016/07/28 01:38:09, dcheng (OOO ...
4 years, 4 months ago (2016-07-28 14:43:00 UTC) #24
dcheng
lgtm
4 years, 4 months ago (2016-07-29 04:11:40 UTC) #27
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/2115863002/360001
4 years, 4 months ago (2016-07-29 11:40:50 UTC) #32
commit-bot: I haz the power
Committed patchset #19 (id:360001)
4 years, 4 months ago (2016-07-29 12:09:53 UTC) #34
commit-bot: I haz the power
Patchset 19 (id:??) landed as https://crrev.com/e8e78c2bf33201a83d1acc253f62a8493afac020 Cr-Commit-Position: refs/heads/master@{#408618}
4 years, 4 months ago (2016-07-29 12:12:10 UTC) #36
Lei Zhang
4 years, 4 months ago (2016-07-29 21:40:22 UTC) #38
Message was sent while issue was closed.
https://codereview.chromium.org/2115863002/diff/360001/chrome/browser/chromeo...
File chrome/browser/chromeos/arc/arc_print_service.cc (right):

https://codereview.chromium.org/2115863002/diff/360001/chrome/browser/chromeo...
chrome/browser/chromeos/arc/arc_print_service.cc:28:
base::CreateTemporaryFile(&file_path);
Check for failure?

https://codereview.chromium.org/2115863002/diff/360001/chrome/browser/chromeo...
chrome/browser/chromeos/arc/arc_print_service.cc:38: return base::nullopt;
Can't you just return an empty FilePath to indicate failure? i.e. no need for
Optional.

Powered by Google App Engine
This is Rietveld 408576698