[battery] Enable heavy AlignWakeUps under battery saver mode [chromium/src : main]

0 views
Skip to first unread message

Etienne Pierre-Doray (Gerrit)

unread,
Jul 16, 2024, 4:50:36 PM7/16/24
to Dave Tapuska, Anthony Vallée-Dubois, AyeAye, Chromium LUCI CQ, Francois Pierre Doray, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Anthony Vallée-Dubois, Dave Tapuska and Francois Pierre Doray

Etienne Pierre-Doray added 3 comments

Patchset-level comments
File-level comment, Patchset 14 (Latest):
Etienne Pierre-Doray . resolved

PTAnL?

File content/child/child_thread_impl.cc
Line 455, Patchset 10: void SetBatterySaverMode(bool align_wake_ups) override {
Dave Tapuska . resolved

So this is on a spearate mojo channel than the Renderer mojo interface so it could end up being in the wrong state. (see other comment).

If you feel it is necessary then I'd like the RenderThreadImpl to be able to call into this implemenetation (it is a subclass ChildThreadImpl so we should be able to get into a common annyomous function implemented in this cc file).

Francois Pierre Doray

"Align wake ups" and "Blink Battery Saver Modes" are meant to save power, but they're completely independent so it's fine if they're not in sync.

This CL calls `ChildThreadImpl::IOThreadState::SetBatterySaverMode` (this method) for non-renderer child processes and `RenderThreadImpl::SetBatterySaverMode` for renderers, so there is no inconsistency. Would it be better if `ChildThreadImpl::IOThreadState::SetBatterySaverMode` was invoked for all child processes (renderers and non-renderers)? The implementation could set the "Align wake ups" states (applies to all process types) and delegate to a virtual method on ChildThreadImpl to apply policies specific to a process type? (note: RenderThreadImpl is a ChildThreadImpl).

Dave Tapuska

Can we possibly just have the ChildThreadImpl::IOThreadState::SetBatterySaveMode and have it take a bool enabled param (it contains the state of battery saver mode, not the feature settings) and remove the Renderer mojom version.

Then the FeatureParams can be tested in the renderer (we might need to update content renderer DEPS to allow components/performance_manager/public/) we don't need to pass that via IPC.

This allows us to reduce to a single IPC to the IO thread so it is consistent, and then the IOThreadState can post task to call a virtual on ChildThreadImpl that RenderThreadImpl overrides to change the state on the blink isolates.

Etienne Pierre-Doray

Done

File content/common/renderer.mojom
Line 122, Patchset 10: SetBatterySaverMode(bool render_saver_mode, bool align_wake_ups);
Dave Tapuska . resolved

I wonder if we should just make this SetRenderSaverMode that adjusts only the saver mode and not the align_wake_ups.

This is because if we use two different mojo channels to adjust the setting it could end up being the wrong state in the renderer even though they were loggically set in the right order from the browser. Not passing align_wake_ups here fixes that (at the cost of sending both IPCs, but I think you already doing that).

Etienne Pierre-Doray

IIUC BrowserChildProcessHostIterator (used to iterate child processes) excludes renderers, thus mutually exclusive with RenderProcessHost::iterator; I'm not sure we can send IPC to renderers through ChildProcessHost?

Dave Tapuska

Yes I missed that sorry for my understanding. fdoray@ set me correct. Yes you can send stuff to a renderer via ChildProcessHost. (see https://source.chromium.org/chromium/chromium/src/+/main:content/browser/renderer_host/render_process_host_impl.h;l=1445;drc=fa1e0cf5238e2600039f60af6909aefbd4cf003c;bpv=1;bpt=1)

Etienne Pierre-Doray

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Anthony Vallée-Dubois
  • Dave Tapuska
  • Francois Pierre Doray
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 14
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Jul 2024 20:50:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Dave Tapuska <dtap...@chromium.org>
Comment-In-Reply-To: Francois Pierre Doray <fdo...@chromium.org>
Comment-In-Reply-To: Etienne Pierre-Doray <etie...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Dave Tapuska (Gerrit)

unread,
Jul 16, 2024, 4:54:03 PM7/16/24
to Etienne Pierre-Doray, Anthony Vallée-Dubois, AyeAye, Chromium LUCI CQ, Francois Pierre Doray, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Anthony Vallée-Dubois, Etienne Pierre-Doray and Francois Pierre Doray

Dave Tapuska voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Anthony Vallée-Dubois
  • Etienne Pierre-Doray
  • Francois Pierre Doray
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 14
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Jul 2024 20:53:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

gwsq (Gerrit)

unread,
Jul 16, 2024, 5:51:40 PM7/16/24
to Etienne Pierre-Doray, Chromium IPC Reviews, danakj, Dave Tapuska, Anthony Vallée-Dubois, AyeAye, Chromium LUCI CQ, Francois Pierre Doray, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Anthony Vallée-Dubois, Dave Tapuska, Francois Pierre Doray and danakj

Message from gwsq

From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
IPC: dan...@chromium.org

📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

IPC reviewer(s): dan...@chromium.org


Reviewer source(s):
dan...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

Open in Gerrit

Related details

Attention is currently required from:
  • Anthony Vallée-Dubois
  • Dave Tapuska
  • Francois Pierre Doray
  • danakj
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 15
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: danakj <dan...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Dave Tapuska <dtap...@chromium.org>
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: danakj <dan...@chromium.org>
Gerrit-Attention: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Comment-Date: Tue, 16 Jul 2024 21:51:27 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dave Tapuska (Gerrit)

unread,
Jul 17, 2024, 10:35:38 AM7/17/24
to Etienne Pierre-Doray, Chromium IPC Reviews, danakj, Anthony Vallée-Dubois, AyeAye, Chromium LUCI CQ, Francois Pierre Doray, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Anthony Vallée-Dubois, Etienne Pierre-Doray, Francois Pierre Doray and danakj

Dave Tapuska voted and added 1 comment

Votes added by Dave Tapuska

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 16 (Latest):
Dave Tapuska . resolved

still lgtm

Open in Gerrit

Related details

Attention is currently required from:
  • Anthony Vallée-Dubois
  • Etienne Pierre-Doray
  • Francois Pierre Doray
  • danakj
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 16
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: danakj <dan...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Attention: danakj <dan...@chromium.org>
Gerrit-Attention: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Wed, 17 Jul 2024 14:35:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Francois Pierre Doray (Gerrit)

unread,
Jul 17, 2024, 10:53:05 AM7/17/24
to Etienne Pierre-Doray, Dave Tapuska, Chromium IPC Reviews, danakj, Anthony Vallée-Dubois, AyeAye, Chromium LUCI CQ, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Anthony Vallée-Dubois, Etienne Pierre-Doray and danakj

Francois Pierre Doray voted and added 3 comments

Votes added by Francois Pierre Doray

Code-Review+1

3 comments

Patchset-level comments
Francois Pierre Doray . resolved

LGTM with comments.

File chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager.cc
Line 143, Patchset 16 (Latest): if (!data.GetProcess().IsValid()) {
return;
}
Francois Pierre Doray . unresolved

The process is guaranteed to be valid (see [comment](https://source.chromium.org/chromium/chromium/src/+/main:content/public/browser/browser_child_process_observer.h;l=22-23;drc=4cc063ac39c4a0d1f6011421b259a9715bb16de1), my bad for renaming handle -> process without updating the comment [cl](https://chromium-review.googlesource.com/c/chromium/src/+/1298345), fixed [here](https://crrev.com/c/5717291)), so this should be a CHECK.

File content/browser/child_process_host_impl.h
Line 99, Patchset 16 (Latest): void BindHostReceiver(mojo::GenericPendingReceiver receiver) override;
Francois Pierre Doray . unresolved

This overrides a method from content::ChildProcessHost (defined here: https://chromium-review.googlesource.com/c/chromium/src/+/5347739/16/content/public/browser/child_process_host.h#199), not a method from mojom::ChildProcessHost. Move it to the correct section (line 67-81).

Open in Gerrit

Related details

Attention is currently required from:
  • Anthony Vallée-Dubois
  • Etienne Pierre-Doray
  • danakj
Gerrit-Attention: danakj <dan...@chromium.org>
Gerrit-Attention: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Wed, 17 Jul 2024 14:52:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Francois Pierre Doray (Gerrit)

unread,
Jul 17, 2024, 10:55:39 AM7/17/24
to Etienne Pierre-Doray, Dave Tapuska, Chromium IPC Reviews, danakj, Anthony Vallée-Dubois, AyeAye, Chromium LUCI CQ, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Anthony Vallée-Dubois, Etienne Pierre-Doray and danakj

Francois Pierre Doray added 1 comment

File chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager.cc
Line 143, Patchset 16 (Latest): if (!data.GetProcess().IsValid()) {
return;
}
Francois Pierre Doray . unresolved

The process is guaranteed to be valid (see [comment](https://source.chromium.org/chromium/chromium/src/+/main:content/public/browser/browser_child_process_observer.h;l=22-23;drc=4cc063ac39c4a0d1f6011421b259a9715bb16de1), my bad for renaming handle -> process without updating the comment [cl](https://chromium-review.googlesource.com/c/chromium/src/+/1298345), fixed [here](https://crrev.com/c/5717291)), so this should be a CHECK.

Francois Pierre Doray

That being said, I wouldn't want your CL to be reverted if the guarantee turns out to be wrong... so it's fine to keep as-is with a TODO to convert to a CHECK in the future.

Gerrit-Comment-Date: Wed, 17 Jul 2024 14:55:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Francois Pierre Doray <fdo...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
Jul 17, 2024, 2:10:00 PM7/17/24
to Francois Pierre Doray, Dave Tapuska, Chromium IPC Reviews, danakj, Anthony Vallée-Dubois, AyeAye, Chromium LUCI CQ, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Anthony Vallée-Dubois and danakj

Etienne Pierre-Doray voted and added 2 comments

Votes added by Etienne Pierre-Doray

Commit-Queue+1

2 comments

File chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager.cc
Line 143, Patchset 16: if (!data.GetProcess().IsValid()) {
return;
}
Francois Pierre Doray . resolved

The process is guaranteed to be valid (see [comment](https://source.chromium.org/chromium/chromium/src/+/main:content/public/browser/browser_child_process_observer.h;l=22-23;drc=4cc063ac39c4a0d1f6011421b259a9715bb16de1), my bad for renaming handle -> process without updating the comment [cl](https://chromium-review.googlesource.com/c/chromium/src/+/1298345), fixed [here](https://crrev.com/c/5717291)), so this should be a CHECK.

Francois Pierre Doray

That being said, I wouldn't want your CL to be reverted if the guarantee turns out to be wrong... so it's fine to keep as-is with a TODO to convert to a CHECK in the future.

Etienne Pierre-Doray

Done

File content/browser/child_process_host_impl.h
Line 99, Patchset 16: void BindHostReceiver(mojo::GenericPendingReceiver receiver) override;
Francois Pierre Doray . resolved

This overrides a method from content::ChildProcessHost (defined here: https://chromium-review.googlesource.com/c/chromium/src/+/5347739/16/content/public/browser/child_process_host.h#199), not a method from mojom::ChildProcessHost. Move it to the correct section (line 67-81).

Etienne Pierre-Doray

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Anthony Vallée-Dubois
  • danakj
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 18
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: danakj <dan...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Attention: danakj <dan...@chromium.org>
Gerrit-Attention: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Comment-Date: Wed, 17 Jul 2024 18:09:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Anthony Vallée-Dubois (Gerrit)

unread,
Jul 17, 2024, 5:00:09 PM7/17/24
to Etienne Pierre-Doray, Francois Pierre Doray, Dave Tapuska, Chromium IPC Reviews, danakj, AyeAye, Chromium LUCI CQ, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Etienne Pierre-Doray and danakj

Anthony Vallée-Dubois voted and added 1 comment

Votes added by Anthony Vallée-Dubois

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 19 (Latest):
Anthony Vallée-Dubois . resolved

Still lgtm

Open in Gerrit

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
  • danakj
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 19
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: danakj <dan...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Attention: danakj <dan...@chromium.org>
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Wed, 17 Jul 2024 20:59:57 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

danakj (Gerrit)

unread,
Jul 18, 2024, 2:40:58 PM7/18/24
to Etienne Pierre-Doray, Anthony Vallée-Dubois, Francois Pierre Doray, Dave Tapuska, Chromium IPC Reviews, AyeAye, Chromium LUCI CQ, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org
Attention needed from Etienne Pierre-Doray

danakj voted and added 1 comment

Votes added by danakj

Code-Review+1

1 comment

Patchset-level comments
danakj . resolved

LGTM for ipc security

Open in Gerrit

Related details

Attention is currently required from:
  • Etienne Pierre-Doray
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 19
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: danakj <dan...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Attention: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Comment-Date: Thu, 18 Jul 2024 18:40:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
Jul 18, 2024, 3:04:54 PM7/18/24
to danakj, Anthony Vallée-Dubois, Francois Pierre Doray, Dave Tapuska, Chromium IPC Reviews, AyeAye, Chromium LUCI CQ, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org

Etienne Pierre-Doray added 1 comment

File chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager.cc
Line 564, Patchset 1: base::MessagePump::OverrideAlignWakeUpsState(true, base::Milliseconds(32));
Anthony Vallée-Dubois . resolved

nit: maybe add a comment explaining why this is 32ms?

Francois Pierre Doray

Suggestion: In a follow-up, change to ActivateHeavyWakeUpAlignment() and hide the constant in the implementation. Document the constant choice in the implementation.

Reason: Avoid duplicating the constant here and in content/renderer/render_thread_impl.cc

Etienne Pierre-Doray

Acknowledged

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 19
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: danakj <dan...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: gwsq
Gerrit-Comment-Date: Thu, 18 Jul 2024 19:04:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Francois Pierre Doray <fdo...@chromium.org>
Comment-In-Reply-To: Anthony Vallée-Dubois <anth...@chromium.org>
satisfied_requirement
open
diffy

Etienne Pierre-Doray (Gerrit)

unread,
Jul 18, 2024, 3:04:57 PM7/18/24
to danakj, Anthony Vallée-Dubois, Francois Pierre Doray, Dave Tapuska, Chromium IPC Reviews, AyeAye, Chromium LUCI CQ, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org

Etienne Pierre-Doray voted Commit-Queue+2

Commit-Queue+2
Gerrit-Comment-Date: Thu, 18 Jul 2024 19:04:38 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jul 18, 2024, 4:08:12 PM7/18/24
to Etienne Pierre-Doray, danakj, Anthony Vallée-Dubois, Francois Pierre Doray, Dave Tapuska, Chromium IPC Reviews, AyeAye, Code Review Nudger, chromium...@chromium.org, scheduler...@chromium.org, mac-r...@chromium.org, creis...@chromium.org, navigation...@chromium.org, alexmo...@chromium.org, chromiumme...@microsoft.com, asvitki...@chromium.org, blundell+...@chromium.org, performance-m...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[battery] Enable heavy AlignWakeUps under battery saver mode

- Add a feature kBatterySaverModeAlignWakeUps
- Add a signal to all child processes
- Call OverrideAlignWakeUpsState in browser,
renderers and child processes
Bug: 40158967
Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Reviewed-by: Dave Tapuska <dtap...@chromium.org>
Commit-Queue: Etienne Pierre-Doray <etie...@chromium.org>
Reviewed-by: Francois Pierre Doray <fdo...@chromium.org>
Reviewed-by: Anthony Vallée-Dubois <anth...@chromium.org>
Reviewed-by: danakj <dan...@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1329769}
Files:
  • M chrome/browser/metrics/power/battery_discharge_reporter_unittest.cc
  • M chrome/browser/performance_manager/public/user_tuning/battery_saver_mode_manager.h
  • A chrome/browser/performance_manager/test_support/fake_child_process_tuning_delegate.cc
  • A chrome/browser/performance_manager/test_support/fake_child_process_tuning_delegate.h
  • D chrome/browser/performance_manager/test_support/fake_render_tuning_delegate.cc
  • D chrome/browser/performance_manager/test_support/fake_render_tuning_delegate.h
  • M chrome/browser/performance_manager/test_support/test_user_performance_tuning_manager_environment.cc
  • M chrome/browser/performance_manager/test_support/test_user_performance_tuning_manager_environment.h
  • M chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager.cc
  • M chrome/browser/performance_manager/user_tuning/battery_saver_mode_manager_unittest.cc
  • M chrome/test/BUILD.gn
  • M components/performance_manager/features.cc
  • M components/performance_manager/public/features.h
  • M content/browser/child_process_host_impl.cc
  • M content/browser/child_process_host_impl.h
  • M content/browser/child_process_task_port_provider_mac_unittest.cc
  • M content/browser/renderer_host/render_process_host_impl.cc
  • M content/child/child_thread_impl.cc
  • M content/child/child_thread_impl.h
  • M content/common/child_process.mojom
  • M content/common/renderer.mojom
  • M content/public/browser/child_process_host.h
  • M content/public/common/content_features.cc
  • M content/public/common/content_features.h
  • M content/renderer/render_thread_impl.cc
  • M content/renderer/render_thread_impl.h
Change size: L
Delta: 26 files changed, 219 insertions(+), 140 deletions(-)
Branch: refs/heads/main
Submit Requirements:
  • requirement satisfiedCode-Review: +1 by danakj, +1 by Dave Tapuska, +1 by Anthony Vallée-Dubois, +1 by Francois Pierre Doray
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I6588dfa20182fb5d410bf2b839588066f6f270a5
Gerrit-Change-Number: 5347739
Gerrit-PatchSet: 20
Gerrit-Owner: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Anthony Vallée-Dubois <anth...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Dave Tapuska <dtap...@chromium.org>
Gerrit-Reviewer: Etienne Pierre-Doray <etie...@chromium.org>
Gerrit-Reviewer: Francois Pierre Doray <fdo...@chromium.org>
Gerrit-Reviewer: danakj <dan...@chromium.org>
Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages