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

Issue 1495723004: Minimum implementation of ARC clipboard Bridge (Closed)

Created:
5 years ago by Chi-Ngai Wan
Modified:
4 years, 11 months ago
CC:
dcheng, chromium-reviews, davemoore+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Minimum implementation of ARC Clipboard Bridge. All change sets include: - http://crrev.com/1495723004 (Chromium) - http://ag/833451 (Android device/google/cheets) - http://ag/833422 (Android platform/frameworks/base) BUG=565283 TEST=Build both sides. Ctrl-C/Ctrl-V from either side reflect to the other. Committed: https://crrev.com/f5601134a83382fdda85405fa41904e8ceb4f4ef Cr-Commit-Position: refs/heads/master@{#368547}

Patch Set 1 #

Patch Set 2 : Rebased to origin/master #

Patch Set 3 : Rebased to catch arc++ notification cl #

Total comments: 13

Patch Set 4 : Rebased and implement in mojo #

Patch Set 5 : Rebased, migrated to MOJO, moved from c/b/chromeos to components/arc/clipboard #

Patch Set 6 : Rebased #

Patch Set 7 : Fix the fakes #

Total comments: 14

Patch Set 8 : Rebased and refactored #

Total comments: 1

Patch Set 9 : #

Total comments: 2

Patch Set 10 : Fixes for reviewer's comments #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : #

Patch Set 13 : Rebased and introduced OnClipboardVersionReady/CloseClipboardChannel #

Patch Set 14 : Fixed code comment #

Patch Set 15 : Fixed typo #

Patch Set 16 : Fixed tryboy warnings #

Total comments: 6

Patch Set 17 : Rebased and address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, --1 lines) Patch
M components/arc.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +4 lines, -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 15 16 3 chunks +4 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 15 16 8 chunks +11 lines, -0 lines 0 comments Download
M components/arc/arc_bridge_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +26 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
M components/arc/arc_service_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -0 lines 0 comments Download
A + components/arc/clipboard/DEPS View 1 2 3 4 0 chunks +-1 lines, --1 lines 0 comments Download
A components/arc/clipboard/arc_clipboard_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +43 lines, -0 lines 0 comments Download
A components/arc/clipboard/arc_clipboard_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +75 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 16 2 chunks +4 lines, -0 lines 0 comments Download
A components/arc/common/clipboard.mojom View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 83 (38 generated)
cnwan
Hi, This is my implementation of ARC++ clipboard manager in Chrome. The related Android CL ...
5 years ago (2015-12-04 15:10:51 UTC) #6
elijahtaylor1
https://codereview.chromium.org/1495723004/diff/40001/chrome/browser/chromeos/arc/clipboard/arc_clipboard_manager.cc File chrome/browser/chromeos/arc/clipboard/arc_clipboard_manager.cc (right): https://codereview.chromium.org/1495723004/diff/40001/chrome/browser/chromeos/arc/clipboard/arc_clipboard_manager.cc#newcode36 chrome/browser/chromeos/arc/clipboard/arc_clipboard_manager.cc:36: arc::ArcBridgeService* bridge_service = arc::ArcBridgeService::Get(); you don't need bridge_service below, ...
5 years ago (2015-12-04 20:36:51 UTC) #11
Luis Héctor Chávez
https://codereview.chromium.org/1495723004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.h File chrome/browser/chromeos/chrome_browser_main_chromeos.h (right): https://codereview.chromium.org/1495723004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.h#newcode86 chrome/browser/chromeos/chrome_browser_main_chromeos.h:86: scoped_ptr<ArcClipboardManager> arc_clipboard_manager_; denniskempin@ is creating a new class to ...
5 years ago (2015-12-04 20:52:03 UTC) #12
Luis Héctor Chávez
On 2015/12/04 20:52:03, Luis Héctor Chávez wrote: > https://codereview.chromium.org/1495723004/diff/40001/chrome/browser/chromeos/chrome_browser_main_chromeos.h > File chrome/browser/chromeos/chrome_browser_main_chromeos.h (right): > > ...
5 years ago (2015-12-04 20:56:07 UTC) #13
dcheng
https://codereview.chromium.org/1495723004/diff/40001/components/arc/common/arc_message_types.h File components/arc/common/arc_message_types.h (right): https://codereview.chromium.org/1495723004/diff/40001/components/arc/common/arc_message_types.h#newcode66 components/arc/common/arc_message_types.h:66: enum ClipboardDataType : int { enum class =)
5 years ago (2015-12-04 21:39:38 UTC) #14
jochen (gone - plz use gerrit)
please don't rely on global getters, make lifetime relationships explicit please also remove the buganizer ...
5 years ago (2015-12-07 15:45:10 UTC) #15
cnwan
Hi, I've rebased, migrated the implementation to MOJO and moved the code to arc_service_manager. Please ...
5 years ago (2015-12-11 10:48:45 UTC) #20
elijahtaylor1
https://codereview.chromium.org/1495723004/diff/120001/components/arc/arc_bridge_service.h File components/arc/arc_bridge_service.h (right): https://codereview.chromium.org/1495723004/diff/120001/components/arc/arc_bridge_service.h#newcode122 components/arc/arc_bridge_service.h:122: // or a service tries to retrieve the Android ...
5 years ago (2015-12-15 01:17:05 UTC) #24
Luis Héctor Chávez
https://codereview.chromium.org/1495723004/diff/120001/components/arc/clipboard/clipboard_bridge_impl.cc File components/arc/clipboard/clipboard_bridge_impl.cc (right): https://codereview.chromium.org/1495723004/diff/120001/components/arc/clipboard/clipboard_bridge_impl.cc#newcode18 components/arc/clipboard/clipboard_bridge_impl.cc:18: DCHECK(bridge_service_->state() == ArcBridgeService::State::STOPPED); On 2015/12/15 01:17:05, elijahtaylor1 wrote: > ...
5 years ago (2015-12-16 23:16:23 UTC) #25
cnwan
I'll send out another patch later for splitting out clipboard's mojom from arc_bridge.mojom once crrev.com/1541653002 ...
5 years ago (2015-12-21 11:18:01 UTC) #26
Luis Héctor Chávez
https://codereview.chromium.org/1495723004/diff/120001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/1495723004/diff/120001/components/arc/common/arc_bridge.mojom#newcode147 components/arc/common/arc_bridge.mojom:147: OnSetClipboardContent(string text); On 2015/12/21 11:18:01, cnwan wrote: > On ...
5 years ago (2015-12-21 17:33:50 UTC) #27
cnwan
On 2015/12/21 17:33:50, Luis Héctor Chávez wrote: > https://codereview.chromium.org/1495723004/diff/120001/components/arc/common/arc_bridge.mojom > File components/arc/common/arc_bridge.mojom (right): > > ...
5 years ago (2015-12-22 07:53:23 UTC) #28
Luis Héctor Chávez
On 2015/12/22 07:53:23, cnwan wrote: > On 2015/12/21 17:33:50, Luis Héctor Chávez wrote: > > ...
4 years, 12 months ago (2015-12-22 23:45:19 UTC) #29
Luis Héctor Chávez
https://codereview.chromium.org/1495723004/diff/120001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/1495723004/diff/120001/components/arc/common/arc_bridge.mojom#newcode147 components/arc/common/arc_bridge.mojom:147: OnSetClipboardContent(string text); On 2015/12/21 17:33:50, Luis Héctor Chávez wrote: ...
4 years, 12 months ago (2015-12-23 00:07:01 UTC) #30
cnwan
On 2015/12/23 00:07:01, Luis Héctor Chávez wrote: > https://codereview.chromium.org/1495723004/diff/120001/components/arc/common/arc_bridge.mojom > File components/arc/common/arc_bridge.mojom (right): > > ...
4 years, 12 months ago (2015-12-23 14:09:17 UTC) #31
Luis Héctor Chávez
https://codereview.chromium.org/1495723004/diff/140001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/1495723004/diff/140001/components/arc/common/arc_bridge.mojom#newcode24 components/arc/common/arc_bridge.mojom:24: OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); Can you add [MinVersion=1] before the method ...
4 years, 11 months ago (2015-12-28 23:57:49 UTC) #32
cnwan
On 2015/12/28 23:57:49, Luis Héctor Chávez wrote: > https://codereview.chromium.org/1495723004/diff/140001/components/arc/common/arc_bridge.mojom > File components/arc/common/arc_bridge.mojom (right): > > ...
4 years, 11 months ago (2015-12-29 11:03:59 UTC) #33
dcheng
https://codereview.chromium.org/1495723004/diff/160001/components/arc/clipboard/arc_clipboard_bridge.cc File components/arc/clipboard/arc_clipboard_bridge.cc (right): https://codereview.chromium.org/1495723004/diff/160001/components/arc/clipboard/arc_clipboard_bridge.cc#newcode54 components/arc/clipboard/arc_clipboard_bridge.cc:54: clipboard_instance->Init(std::move(host)); #include <utility> https://codereview.chromium.org/1495723004/diff/160001/components/arc/clipboard/arc_clipboard_bridge.cc#newcode58 components/arc/clipboard/arc_clipboard_bridge.cc:58: DCHECK(CalledOnValidThread()); Just to double-check... ...
4 years, 11 months ago (2015-12-30 19:51:52 UTC) #34
cnwan
On 2015/12/30 19:51:52, dcheng wrote: > https://codereview.chromium.org/1495723004/diff/160001/components/arc/clipboard/arc_clipboard_bridge.cc > File components/arc/clipboard/arc_clipboard_bridge.cc (right): > > https://codereview.chromium.org/1495723004/diff/160001/components/arc/clipboard/arc_clipboard_bridge.cc#newcode54 > ...
4 years, 11 months ago (2015-12-31 01:56:52 UTC) #35
Luis Héctor Chávez
LGTM https://codereview.chromium.org/1495723004/diff/200001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1495723004/diff/200001/components/arc/arc_service_manager.h#newcode18 components/arc/arc_service_manager.h:18: class ArcClipboardBridge; nit: Lexicographic order. https://codereview.chromium.org/1495723004/diff/200001/components/arc/arc_service_manager.h#newcode41 components/arc/arc_service_manager.h:41: scoped_ptr<ArcClipboardBridge> ...
4 years, 11 months ago (2016-01-04 16:46:39 UTC) #36
cnwan
On 2016/01/04 16:46:39, Luis Héctor Chávez wrote: > LGTM > > https://codereview.chromium.org/1495723004/diff/200001/components/arc/arc_service_manager.h > File components/arc/arc_service_manager.h ...
4 years, 11 months ago (2016-01-05 07:10:15 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495723004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495723004/200001
4 years, 11 months ago (2016-01-05 07:15:26 UTC) #39
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 11 months ago (2016-01-05 07:15:28 UTC) #41
cnwan
https://codereview.chromium.org/1495723004/diff/200001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/1495723004/diff/200001/components/arc/arc_service_manager.h#newcode18 components/arc/arc_service_manager.h:18: class ArcClipboardBridge; On 2016/01/04 16:46:39, Luis Héctor Chávez wrote: ...
4 years, 11 months ago (2016-01-05 07:15:45 UTC) #42
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495723004/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495723004/200001
4 years, 11 months ago (2016-01-05 07:21:10 UTC) #44
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 11 months ago (2016-01-05 07:21:13 UTC) #46
Luis Héctor Chávez
On 2016/01/05 07:21:13, commit-bot: I haz the power wrote: > Dry run: No L-G-T-M from ...
4 years, 11 months ago (2016-01-05 19:02:14 UTC) #47
cnwan
On 2016/01/05 19:02:14, Luis Héctor Chávez wrote: > On 2016/01/05 07:21:13, commit-bot: I haz the ...
4 years, 11 months ago (2016-01-06 10:41:20 UTC) #48
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495723004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495723004/280001
4 years, 11 months ago (2016-01-06 13:30:39 UTC) #53
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
4 years, 11 months ago (2016-01-06 13:30:42 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495723004/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495723004/280001
4 years, 11 months ago (2016-01-06 13:34:49 UTC) #58
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 11 months ago (2016-01-06 13:34:55 UTC) #60
Owen Lin
lgtm
4 years, 11 months ago (2016-01-07 06:29:59 UTC) #62
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495723004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495723004/300001
4 years, 11 months ago (2016-01-07 06:32:30 UTC) #64
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/133244)
4 years, 11 months ago (2016-01-07 06:43:00 UTC) #66
cnwan
On 2016/01/07 06:43:00, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
4 years, 11 months ago (2016-01-07 07:00:35 UTC) #68
Luis Héctor Chávez
https://codereview.chromium.org/1495723004/diff/300001/components/arc/common/arc_bridge.mojom File components/arc/common/arc_bridge.mojom (right): https://codereview.chromium.org/1495723004/diff/300001/components/arc/common/arc_bridge.mojom#newcode24 components/arc/common/arc_bridge.mojom:24: [MinVersion=1] OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); FYI another change went in. Bump ...
4 years, 11 months ago (2016-01-07 17:04:54 UTC) #69
elijahtaylor1
adding lgtm for components/arc (I think Luis' unfortunately doesn't count yet until he's a full ...
4 years, 11 months ago (2016-01-07 22:04:29 UTC) #70
dcheng
lgtm with nit addressed https://codereview.chromium.org/1495723004/diff/300001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/1495723004/diff/300001/components/arc/arc_service_manager.cc#newcode33 components/arc/arc_service_manager.cc:33: arc_clipboard_bridge_.reset( Initialize this in the ...
4 years, 11 months ago (2016-01-07 22:12:33 UTC) #72
cnwan
On 2016/01/07 22:12:33, dcheng wrote: > lgtm with nit addressed > > https://codereview.chromium.org/1495723004/diff/300001/components/arc/arc_service_manager.cc > File ...
4 years, 11 months ago (2016-01-08 06:38:45 UTC) #74
cnwan
Rebased and addressed reviewers' comments https://codereview.chromium.org/1495723004/diff/300001/components/arc/arc_service_manager.cc File components/arc/arc_service_manager.cc (right): https://codereview.chromium.org/1495723004/diff/300001/components/arc/arc_service_manager.cc#newcode33 components/arc/arc_service_manager.cc:33: arc_clipboard_bridge_.reset( On 2016/01/07 22:12:33, ...
4 years, 11 months ago (2016-01-08 06:51:46 UTC) #75
Nico
deps lgtm
4 years, 11 months ago (2016-01-08 18:11:06 UTC) #76
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1495723004/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1495723004/320001
4 years, 11 months ago (2016-01-11 04:57:20 UTC) #79
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 11 months ago (2016-01-11 09:14:53 UTC) #81
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 09:16:13 UTC) #83
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/f5601134a83382fdda85405fa41904e8ceb4f4ef
Cr-Commit-Position: refs/heads/master@{#368547}

Powered by Google App Engine
This is Rietveld 408576698