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

Issue 2692993006: Port device_sensors to be hosted in Device Service (Closed)

Created:
3 years, 10 months ago by ke.he
Modified:
3 years, 9 months ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Port device_sensors to be hosted in Device Service This patch moves device_sensors to be hosted by the Device Service. Before this patch, device_sensors were registered in RenderProcessHostImpl, the function DeviceSensorHost::Create() which makes StrongBinding is run on IO Thread(if Android platform) or UI thread(if other platforms). In this patch, we add a member |io_task_runner_| in DeviceService and use PostTask() to make sure the StrongBindings still happen in same threads as before. TODO: The mojom and cpp library are still in //device/sensors, will move them into //services/device later (when move //device/sensors/ implementations into //service). BUG=686706 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2692993006 Cr-Commit-Position: refs/heads/master@{#459015} Committed: https://chromium.googlesource.com/chromium/src/+/57f4387cd58afa6949c3fa158271d49690ca8d81

Patch Set 1 #

Patch Set 2 : Port device_sensors to be hosted in Device Service #

Patch Set 3 : Port device_sensors to be hosted in Device Service #

Patch Set 4 : code rebase #

Patch Set 5 : content_browsertest pass #

Patch Set 6 : content_unittests pass #

Patch Set 7 : code rebase #

Total comments: 2

Patch Set 8 : code rebase #

Total comments: 1

Patch Set 9 : always bind the mojo::InterfacePtr #

Patch Set 10 : code rebase #

Patch Set 11 : remove redundant deps from //content to //device/sensor #

Patch Set 12 : Port device_sensors to be hosted in Device Service #

Patch Set 13 : code rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -31 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -23 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/device_sensors/device_sensor_event_pump.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -1 line 0 comments Download
M content/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M services/device/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M services/device/device_service.h View 1 2 3 4 5 6 7 8 9 3 chunks +24 lines, -0 lines 0 comments Download
M services/device/device_service.cc View 1 2 3 4 5 6 7 8 9 3 chunks +71 lines, -0 lines 0 comments Download
M services/device/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -2 lines 0 comments Download

Messages

Total messages: 129 (94 generated)
ke.he
Hi, Ken, Could you PTAL on this? Thanks!
3 years, 10 months ago (2017-02-15 14:40:45 UTC) #31
blundell
https://codereview.chromium.org/2692993006/diff/120001/services/device/device_service.cc File services/device/device_service.cc (right): https://codereview.chromium.org/2692993006/diff/120001/services/device/device_service.cc#newcode84 services/device/device_service.cc:84: io_task_runner_->PostTask(FROM_HERE, base::Bind(&DeviceMotionHost::Create, Could you add an explanation in the ...
3 years, 10 months ago (2017-02-20 15:45:31 UTC) #36
ke.he
After CL description updated, a new buildbot "linux_site_isolation" was triggered and failed (layout-test: http/tests/security/powerfulFeatureRestrictions/old-powerful-features-on-insecure-origin.html") Its ...
3 years, 10 months ago (2017-02-21 09:34:04 UTC) #44
blundell
https://codereview.chromium.org/2692993006/diff/160001/content/renderer/device_sensors/device_sensor_event_pump.h File content/renderer/device_sensors/device_sensor_event_pump.h (left): https://codereview.chromium.org/2692993006/diff/160001/content/renderer/device_sensors/device_sensor_event_pump.h#oldcode27 content/renderer/device_sensors/device_sensor_event_pump.h:27: mojo::InterfaceRequest<MojoInterface> request(&mojo_interface_); The problem is here. You're now not ...
3 years, 10 months ago (2017-02-22 16:30:24 UTC) #51
ke.he
On 2017/02/22 16:30:24, blundell wrote: > https://codereview.chromium.org/2692993006/diff/160001/content/renderer/device_sensors/device_sensor_event_pump.h > File content/renderer/device_sensors/device_sensor_event_pump.h (left): > > https://codereview.chromium.org/2692993006/diff/160001/content/renderer/device_sensors/device_sensor_event_pump.h#oldcode27 > ...
3 years, 10 months ago (2017-02-23 05:49:10 UTC) #56
blundell
Hi, The code looks fine but there's a problematic reference to DeviceSensorService in //content: https://cs.chromium.org/chromium/src/content/browser/browser_main_loop.cc?q=DeviceSensorService+package:%5Echromium$&l=1377 ...
3 years, 10 months ago (2017-02-23 14:31:15 UTC) #57
blundell
On 2017/02/23 14:31:15, blundell wrote: > Hi, > > The code looks fine but there's ...
3 years, 9 months ago (2017-03-03 20:25:03 UTC) #58
ke.he
On 2017/03/03 20:25:03, blundell wrote: > On 2017/02/23 14:31:15, blundell wrote: > > Hi, > ...
3 years, 9 months ago (2017-03-06 03:11:23 UTC) #59
ke.he
Hi,Colin, PTAL. thanks:)
3 years, 9 months ago (2017-03-17 05:18:43 UTC) #64
blundell
Hi Ke He, Can we now remove all deps from //content to //device/sensors and //device/sensors:java ...
3 years, 9 months ago (2017-03-17 12:40:13 UTC) #65
ke.he
there are 4 deps from //content to //device/sensor: 1)The deps from //content/browser to //device/sensor is ...
3 years, 9 months ago (2017-03-18 05:02:28 UTC) #87
blundell
Thanks, Ke He! On 2017/03/18 05:02:28, ke.he wrote: > there are 4 deps from //content ...
3 years, 9 months ago (2017-03-20 08:17:54 UTC) #88
ke.he
>> 3)The deps from //content/public/android to //device/sensor:java, I feel we >> should do it after ...
3 years, 9 months ago (2017-03-21 07:24:46 UTC) #89
blundell
lgtm, thanks for the investigations and explanations!
3 years, 9 months ago (2017-03-21 10:58:31 UTC) #90
ke.he
On 2017/03/21 10:58:31, blundell wrote: > lgtm, thanks for the investigations and explanations! Hi, Colin, ...
3 years, 9 months ago (2017-03-21 11:31:48 UTC) #91
ke.he
3 years, 9 months ago (2017-03-21 11:32:09 UTC) #93
ke.he
Hi, Jam@, Could you PTAL on the changes in //content? Thanks!
3 years, 9 months ago (2017-03-21 11:33:36 UTC) #94
blundell
On 2017/03/21 11:31:48, ke.he wrote: > On 2017/03/21 10:58:31, blundell wrote: > > lgtm, thanks ...
3 years, 9 months ago (2017-03-21 11:52:48 UTC) #95
jam
lgtm
3 years, 9 months ago (2017-03-21 23:58:43 UTC) #96
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/2692993006/260001
3 years, 9 months ago (2017-03-22 00:54:41 UTC) #98
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/391045)
3 years, 9 months ago (2017-03-22 01:10:31 UTC) #100
ke.he
Hi, Tom, Could you PTAL on "content/public/app/mojo/content_browser_manifest.json" and "content/public/app/mojo/content_renderer_manifest.json" for the security review? Thanks!
3 years, 9 months ago (2017-03-22 02:08:55 UTC) #102
Tom Sepez
lgtm
3 years, 9 months ago (2017-03-22 17:13:14 UTC) #103
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/2692993006/260001
3 years, 9 months ago (2017-03-23 02:13:09 UTC) #105
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/233068) cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, ...
3 years, 9 months ago (2017-03-23 02:16:49 UTC) #107
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/2692993006/280001
3 years, 9 months ago (2017-03-23 02:43:57 UTC) #110
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304232)
3 years, 9 months ago (2017-03-23 03:00:54 UTC) #112
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/2692993006/280001
3 years, 9 months ago (2017-03-23 03:10:52 UTC) #114
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304270)
3 years, 9 months ago (2017-03-23 03:27:03 UTC) #116
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/2692993006/280001
3 years, 9 months ago (2017-03-23 05:21:16 UTC) #118
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304395)
3 years, 9 months ago (2017-03-23 05:34:19 UTC) #120
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/2692993006/280001
3 years, 9 months ago (2017-03-23 06:13:42 UTC) #122
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/304455)
3 years, 9 months ago (2017-03-23 06:31:23 UTC) #124
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/2692993006/280001
3 years, 9 months ago (2017-03-23 07:27:09 UTC) #126
commit-bot: I haz the power
3 years, 9 months ago (2017-03-23 07:41:49 UTC) #129
Message was sent while issue was closed.
Committed patchset #13 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/57f4387cd58afa6949c3fa158271...

Powered by Google App Engine
This is Rietveld 408576698