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

Issue 2629873002: Do not create base::HighResolutionTimerManager in service utility process (Closed)

Created:
3 years, 11 months ago by leonhsl(Using Gerrit)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Do not create base::HighResolutionTimerManager in service utility process Before mojofication of power monitor IPCs, although service utility process would create base::PowerMonitor, it can't receive any IPC about power monitor changes because corresponding ServiceUtilityProcessHost does not create the PowerMonitorMessageBroadcaster instance sending power monitor changes. Then service utility process enables HiRes-Timer no matter on battery or not, this is supposed to be incorrect behavior, the expected behavior should be that base::HighResolutionTimerManager can enable/disable HiRes-Timer correctly. Currently power monitor has been mojofied and changed to be hosted in Device Service, because service utility process has no connection to service manager, it can not connect to Device Service, so base::PowerMonitor can not work, means base::HighResolutionTimerManager still can not work. This CL - Avoids creating base::HighResolutionTimerManager in service utility process, this will make HiRes-Timer always be disabled by default. As currently service utiltiy process does not really use HiRes-Timer, this change has no any bad effect. - Adds a TODO to enable service utility process to have a service manager connection, after that we can make base::HighResolutionTimerManager work correctly for future possible usage of HiRes-Timer in service utility process. BUG=680400 Review-Url: https://codereview.chromium.org/2629873002 Cr-Commit-Position: refs/heads/master@{#445646} Committed: https://chromium.googlesource.com/chromium/src/+/8f88196e6d6f9f81cb3bb05e3baca460a7df91b6

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix #

Total comments: 4

Patch Set 3 : Address comments from danakj@ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -1 line) Patch
M content/utility/utility_main.cc View 1 2 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 53 (26 generated)
leonhsl(Using Gerrit)
Although this CL does not solve the problem completely, at least it can avoid the ...
3 years, 11 months ago (2017-01-13 12:13:15 UTC) #5
blundell
Thanks for tracking this down! Hmm, I have no idea if it's OK for the ...
3 years, 11 months ago (2017-01-16 13:14:21 UTC) #13
leonhsl(Using Gerrit)
On 2017/01/16 13:14:21, blundell wrote: > Thanks for tracking this down! > > Hmm, I ...
3 years, 11 months ago (2017-01-17 03:55:12 UTC) #14
bajones
On 2017/01/16 13:14:21, blundell wrote: > Thanks for tracking this down! > > Hmm, I ...
3 years, 11 months ago (2017-01-17 18:26:59 UTC) #15
leonhsl(Using Gerrit)
+vitalybuka@, OWNER of chrome/service/, would you please help to clarify whether HighResolutionTimerManager is necessary for ...
3 years, 11 months ago (2017-01-18 05:54:23 UTC) #17
Vitaly Buka (NO REVIEWS)
I don't work there any more, but I suspect Cloud Print itself should be OK ...
3 years, 11 months ago (2017-01-18 19:07:50 UTC) #18
leonhsl(Using Gerrit)
On 2017/01/18 19:07:50, Vitaly Buka wrote: > I don't work there any more, but I ...
3 years, 11 months ago (2017-01-19 03:37:46 UTC) #19
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/2629873002/diff/1/content/utility/utility_main.cc File content/utility/utility_main.cc (right): https://codereview.chromium.org/2629873002/diff/1/content/utility/utility_main.cc#newcode52 content/utility/utility_main.cc:52: switches::kServiceRequestChannelToken)) Probably you can just base::HighResolutionTimerManager
3 years, 11 months ago (2017-01-19 04:25:35 UTC) #20
leonhsl(Using Gerrit)
https://codereview.chromium.org/2629873002/diff/1/content/utility/utility_main.cc File content/utility/utility_main.cc (right): https://codereview.chromium.org/2629873002/diff/1/content/utility/utility_main.cc#newcode52 content/utility/utility_main.cc:52: switches::kServiceRequestChannelToken)) On 2017/01/19 04:25:35, Vitaly Buka wrote: > Probably ...
3 years, 11 months ago (2017-01-19 07:06:44 UTC) #25
blundell
I investigated, and here's the situation as I see it: - Before Mojo-ification, BrowserChildProcessHostImpl instantiated ...
3 years, 11 months ago (2017-01-19 12:39:05 UTC) #26
Vitaly Buka (NO REVIEWS)
On 2017/01/19 07:06:44, leonhsl wrote: > https://codereview.chromium.org/2629873002/diff/1/content/utility/utility_main.cc > File content/utility/utility_main.cc (right): > > https://codereview.chromium.org/2629873002/diff/1/content/utility/utility_main.cc#newcode52 > ...
3 years, 11 months ago (2017-01-19 18:51:21 UTC) #27
leonhsl(Using Gerrit)
Thanks Colin a lot for deep analysis! I suppose the behavior pre-Mojofication is incorrect,, all ...
3 years, 11 months ago (2017-01-20 02:58:31 UTC) #28
leonhsl(Using Gerrit)
+danakj@, would you please help to confirm the question above? Thanks.
3 years, 11 months ago (2017-01-20 02:59:47 UTC) #30
blundell
Could you update the CL description to reflect our current understanding? Thanks!
3 years, 11 months ago (2017-01-20 10:17:56 UTC) #31
danakj
On 2017/01/20 02:58:31, leonhsl wrote: > Thanks Colin a lot for deep analysis! > I ...
3 years, 11 months ago (2017-01-20 16:37:27 UTC) #32
danakj
https://codereview.chromium.org/2629873002/diff/20001/content/utility/utility_main.cc File content/utility/utility_main.cc (right): https://codereview.chromium.org/2629873002/diff/20001/content/utility/utility_main.cc#newcode51 content/utility/utility_main.cc:51: std::unique_ptr<base::HighResolutionTimerManager> hi_res_timer_manager; you could use Optional if u dont ...
3 years, 11 months ago (2017-01-20 16:37:33 UTC) #33
leonhsl(Using Gerrit)
On 2017/01/20 16:37:27, danakj (slow) wrote: > On 2017/01/20 02:58:31, leonhsl wrote: > > Thanks ...
3 years, 11 months ago (2017-01-22 05:29:14 UTC) #38
leonhsl(Using Gerrit)
https://codereview.chromium.org/2629873002/diff/20001/content/utility/utility_main.cc File content/utility/utility_main.cc (right): https://codereview.chromium.org/2629873002/diff/20001/content/utility/utility_main.cc#newcode51 content/utility/utility_main.cc:51: std::unique_ptr<base::HighResolutionTimerManager> hi_res_timer_manager; On 2017/01/20 16:37:33, danakj (slow) wrote: > ...
3 years, 11 months ago (2017-01-22 06:05:08 UTC) #40
leonhsl(Using Gerrit)
On 2017/01/20 10:17:56, blundell wrote: > Could you update the CL description to reflect our ...
3 years, 11 months ago (2017-01-22 06:06:06 UTC) #41
blundell
lgtm It seems like the information we have now is basically all we can gather ...
3 years, 11 months ago (2017-01-23 13:41:41 UTC) #42
danakj
LGTM
3 years, 11 months ago (2017-01-23 16:00:45 UTC) #43
Ken Rockot(use gerrit already)
lgtm
3 years, 11 months ago (2017-01-23 18:59:29 UTC) #44
leonhsl(Using Gerrit)
+kinuko@, would you PTAL for OWNER review of content/? Thanks.
3 years, 11 months ago (2017-01-24 03:02:57 UTC) #46
kinuko
rs-ish lgtm
3 years, 11 months ago (2017-01-24 03:05:19 UTC) #47
leonhsl(Using Gerrit)
Thanks all! Landing..
3 years, 11 months ago (2017-01-24 03:22:26 UTC) #48
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/2629873002/40001
3 years, 11 months ago (2017-01-24 03:23:02 UTC) #50
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 04:42:30 UTC) #53
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/8f88196e6d6f9f81cb3bb05e3bac...

Powered by Google App Engine
This is Rietveld 408576698