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

Issue 2510033002: [Device Service] Move PowerMonitor into the Device Service (Closed)

Created:
4 years, 1 month ago by leonhsl(Using Gerrit)
Modified:
3 years, 11 months ago
CC:
Aaron Boodman, abarth-chromium, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Device Service] Move PowerMonitor into the Device Service This CL - configures Device Service to be singleton service. - lets content::ServiceManagerContext initiate a connection to Device, Service to create the singleton instance which will serve all clients. - moves PowerMonitor to being hosted by the Device Service. BUG=647247 Review-Url: https://codereview.chromium.org/2510033002 Cr-Commit-Position: refs/heads/master@{#442550} Committed: https://chromium.googlesource.com/chromium/src/+/918f72f14f7840b8e40c2b0ca5f95817f691ebd6

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fix gn check #

Patch Set 3 : Rebase #

Patch Set 4 : Singleton service #

Total comments: 7

Patch Set 5 : Address comments from blundell@ #

Patch Set 6 : Move registeration of device service to content::ServiceManagerContext #

Total comments: 2

Patch Set 7 : ServiceManagerContext does not hold the connection to device service #

Total comments: 4

Patch Set 8 : Add a TODO #

Total comments: 2

Patch Set 9 : Link TODO with bug #

Patch Set 10 : Rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -31 lines) Patch
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -3 lines 0 comments Download
M content/browser/browser_context.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -9 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -5 lines 0 comments Download
M content/browser/service_manager/service_manager_context.cc View 1 2 3 4 5 6 7 8 9 3 chunks +18 lines, -0 lines 0 comments Download
M content/child/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/child/DEPS View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/child/child_thread_impl.cc View 1 2 3 4 2 chunks +11 lines, -4 lines 0 comments Download
M content/public/app/mojo/content_browser_manifest.json View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -5 lines 0 comments Download
M content/public/app/mojo/content_gpu_manifest.json View 1 chunk +2 lines, -1 line 0 comments Download
M content/public/app/mojo/content_plugin_manifest.json View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M content/public/app/mojo/content_utility_manifest.json View 1 chunk +3 lines, -0 lines 0 comments Download
M services/device/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M services/device/device_service.h View 1 2 3 chunks +7 lines, -0 lines 0 comments Download
M services/device/device_service.cc View 1 2 4 2 chunks +7 lines, -0 lines 0 comments Download
M services/device/manifest.json View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 85 (49 generated)
leonhsl(Using Gerrit)
PTAL with my attached questions :) Thanks. https://codereview.chromium.org/2510033002/diff/1/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2510033002/diff/1/content/browser/service_manager/service_manager_context.cc#newcode260 content/browser/service_manager/service_manager_context.cc:260: // Serves ...
4 years, 1 month ago (2016-11-17 10:28:03 UTC) #8
blundell
Thanks! My apologies, I won't be able to review this until Tuesday.
4 years, 1 month ago (2016-11-18 17:16:35 UTC) #11
blundell
Looks good, thanks! https://codereview.chromium.org/2510033002/diff/1/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2510033002/diff/1/content/browser/service_manager/service_manager_context.cc#newcode260 content/browser/service_manager/service_manager_context.cc:260: // Serves processes other than renderer, ...
4 years, 1 month ago (2016-11-22 16:46:44 UTC) #12
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2510033002/diff/1/content/child/child_thread_impl.cc File content/child/child_thread_impl.cc (right): https://codereview.chromium.org/2510033002/diff/1/content/child/child_thread_impl.cc#newcode546 content/child/child_thread_impl.cc:546: if (service_manager_connection_) { On 2016/11/22 at 16:46:44, blundell wrote: ...
4 years, 1 month ago (2016-11-22 17:23:40 UTC) #13
Ken Rockot(use gerrit already)
On 2016/11/22 at 16:46:44, blundell wrote: > Looks good, thanks! > > https://codereview.chromium.org/2510033002/diff/1/content/browser/service_manager/service_manager_context.cc > File ...
4 years, 1 month ago (2016-11-22 17:37:20 UTC) #14
leonhsl(Using Gerrit)
On 2016/11/22 17:37:20, Ken Rockot wrote: > On 2016/11/22 at 16:46:44, blundell wrote: > > ...
4 years, 1 month ago (2016-11-23 03:18:16 UTC) #15
leonhsl(Using Gerrit)
Friendly ping Ken, Thanks.
4 years ago (2016-11-28 13:01:09 UTC) #16
Ken Rockot(use gerrit already)
Is this work currently blocking anything else? I'd like to hold off on this until ...
4 years ago (2016-11-28 18:24:01 UTC) #17
blundell
On 2016/11/28 18:24:01, Ken Rockot wrote: > Is this work currently blocking anything else? Nope. ...
4 years ago (2016-11-29 15:47:06 UTC) #18
Ken Rockot(use gerrit already)
On 2016/11/29 at 15:47:06, blundell wrote: > On 2016/11/28 18:24:01, Ken Rockot wrote: > > ...
4 years ago (2016-11-29 18:44:29 UTC) #19
leonhsl(Using Gerrit)
Hi Ken, Suppose we have had content_browser as singleton service and content_user_services as per-profile service, ...
4 years ago (2016-11-30 03:27:20 UTC) #20
Ken Rockot(use gerrit already)
On Tue, Nov 29, 2016 at 7:27 PM, <leon.han@intel.com> wrote: > Hi Ken, > Suppose ...
4 years ago (2016-11-30 03:54:24 UTC) #21
leonhsl(Using Gerrit)
On 2016/11/30 03:54:24, Ken Rockot wrote: > On Tue, Nov 29, 2016 at 7:27 PM, ...
4 years ago (2016-11-30 04:03:50 UTC) #22
Ken Rockot(use gerrit already)
I think the dependencies on BrowserContext for NFC and Geolocation etc are details of web ...
4 years ago (2016-11-30 04:11:13 UTC) #23
blundell
Thanks for all this information, Ken! I'm tied up today, but I'll process it tomorrow. ...
4 years ago (2016-11-30 09:50:12 UTC) #24
blundell
Hi Han Leon, Per offline discussion with Ken, it should now "just work" to embed ...
3 years, 11 months ago (2016-12-30 13:28:54 UTC) #25
leonhsl(Using Gerrit)
Uploaded ps#4, PTAnL, Thanks. # Locally confirmed device service can work well as singleton.
3 years, 11 months ago (2017-01-01 08:28:33 UTC) #41
blundell
Thanks! https://codereview.chromium.org/2510033002/diff/100001/content/browser/browser_context.cc File content/browser/browser_context.cc (right): https://codereview.chromium.org/2510033002/diff/100001/content/browser/browser_context.cc#newcode466 content/browser/browser_context.cc:466: base::Bind(&device::CreateDeviceService, Does the Device Service not still need ...
3 years, 11 months ago (2017-01-03 15:20:50 UTC) #42
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2510033002/diff/100001/content/browser/browser_context.cc File content/browser/browser_context.cc (right): https://codereview.chromium.org/2510033002/diff/100001/content/browser/browser_context.cc#newcode466 content/browser/browser_context.cc:466: base::Bind(&device::CreateDeviceService, On 2017/01/03 at 15:20:50, blundell wrote: > Does ...
3 years, 11 months ago (2017-01-03 20:25:15 UTC) #43
leonhsl(Using Gerrit)
https://codereview.chromium.org/2510033002/diff/100001/content/child/child_thread_impl.cc File content/child/child_thread_impl.cc (right): https://codereview.chromium.org/2510033002/diff/100001/content/child/child_thread_impl.cc#newcode521 content/child/child_thread_impl.cc:521: device_connection->GetRemoteInterfaces(); On 2017/01/03 15:20:50, blundell wrote: > nit: This ...
3 years, 11 months ago (2017-01-04 04:56:28 UTC) #46
leonhsl(Using Gerrit)
https://codereview.chromium.org/2510033002/diff/100001/content/browser/browser_context.cc File content/browser/browser_context.cc (right): https://codereview.chromium.org/2510033002/diff/100001/content/browser/browser_context.cc#newcode466 content/browser/browser_context.cc:466: base::Bind(&device::CreateDeviceService, On 2017/01/03 20:25:15, Ken Rockot wrote: > On ...
3 years, 11 months ago (2017-01-04 07:34:11 UTC) #51
blundell
Musing for the future re: "a better way to package the device service": If we ...
3 years, 11 months ago (2017-01-05 16:27:08 UTC) #54
Ken Rockot(use gerrit already)
On Thu, Jan 5, 2017 at 8:27 AM, <blundell@chromium.org> wrote: > Musing for the future ...
3 years, 11 months ago (2017-01-05 17:14:09 UTC) #55
leonhsl(Using Gerrit)
Uploaded ps#7, PTAnL, thanks. https://codereview.chromium.org/2510033002/diff/140001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2510033002/diff/140001/content/browser/service_manager/service_manager_context.cc#newcode331 content/browser/service_manager/service_manager_context.cc:331: std::unique_ptr<service_manager::Connection> device_connection_ = On 2017/01/05 ...
3 years, 11 months ago (2017-01-06 05:26:03 UTC) #60
blundell
lgtm, thanks! https://codereview.chromium.org/2510033002/diff/160001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2510033002/diff/160001/content/browser/service_manager/service_manager_context.cc#newcode280 content/browser/service_manager/service_manager_context.cc:280: // for now. I would eliminate this ...
3 years, 11 months ago (2017-01-06 12:28:09 UTC) #61
leonhsl(Using Gerrit)
https://codereview.chromium.org/2510033002/diff/160001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2510033002/diff/160001/content/browser/service_manager/service_manager_context.cc#newcode280 content/browser/service_manager/service_manager_context.cc:280: // for now. On 2017/01/06 12:28:09, blundell wrote: > ...
3 years, 11 months ago (2017-01-06 14:36:00 UTC) #64
leonhsl(Using Gerrit)
+kinuko@ : For OWNER review of content/{browser, child} +tsepez@ : For OWNER review of content/public/app/mojo/*.json ...
3 years, 11 months ago (2017-01-09 10:32:11 UTC) #69
Tom Sepez
OWNERS LGTM
3 years, 11 months ago (2017-01-09 17:52:50 UTC) #70
Ken Rockot(use gerrit already)
lgtm
3 years, 11 months ago (2017-01-09 18:12:02 UTC) #71
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2510033002/diff/180001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2510033002/diff/180001/content/browser/service_manager/service_manager_context.cc#newcode332 content/browser/service_manager/service_manager_context.cc:332: // singleton service. Please add http://crbug.com/679407 to this note. ...
3 years, 11 months ago (2017-01-09 18:15:26 UTC) #72
kinuko
content/ lgtm
3 years, 11 months ago (2017-01-10 07:30:52 UTC) #73
leonhsl(Using Gerrit)
Thanks all! Will send this to CQ now. https://codereview.chromium.org/2510033002/diff/180001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2510033002/diff/180001/content/browser/service_manager/service_manager_context.cc#newcode332 content/browser/service_manager/service_manager_context.cc:332: // ...
3 years, 11 months ago (2017-01-10 09:23:14 UTC) #74
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/2510033002/200001
3 years, 11 months ago (2017-01-10 09:23:47 UTC) #77
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/132916) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 11 months ago (2017-01-10 09:25:45 UTC) #79
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/2510033002/220001
3 years, 11 months ago (2017-01-10 09:35:28 UTC) #82
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 10:43:48 UTC) #85
Message was sent while issue was closed.
Committed patchset #10 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/918f72f14f7840b8e40c2b0ca5f9...

Powered by Google App Engine
This is Rietveld 408576698