static base::TimeTicks last_input_started = base::TimeTicks::Min();Let's use an object member (of MainThreadSchedulerImpl) instead.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
static base::TimeTicks last_input_started = base::TimeTicks::Min();Avoid using static local variables for state. This introduces global state that persists across scheduler instances (e.g. in tests) and resembles a shared memory pattern which is discouraged. Please make 'last_input_started' a member variable of 'MainThreadSchedulerImpl'. (Blink Style Guide: Threading model)
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason
_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
static base::TimeTicks last_input_started = base::TimeTicks::Min();Let's use an object member (of MainThreadSchedulerImpl) instead.
Done
static base::TimeTicks last_input_started = base::TimeTicks::Min();Avoid using static local variables for state. This introduces global state that persists across scheduler instances (e.g. in tests) and resembles a shared memory pattern which is discouraged. Please make 'last_input_started' a member variable of 'MainThreadSchedulerImpl'. (Blink Style Guide: Threading model)
To keep this interaction as brief and non-intrusive as possible, please consider responding with one of following options:
**Done** | **OK But Won't Fix**: reason | **Later**: b/<bug_id> | **Invalid:** reason
_This comment was generated by [Experimental Blink C++ Code Review Agent](http://go/blink-c++-code-review-agent)._
_AI reviews can sometimes be inaccurate; We appreciate your 🙏 feedback 🙏 to help us improve._
_[File a bug](http://go/blink-c++-code-review-agent-feedback) | [Provide feedback on chat](https://chat.google.com/room/AAQA0zhQHe0?cls=4) | [Opt-out](https://ganpati2.corp.google.com/group/peep-genai-blink-agent-optout.prod)_
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
BASE_FEATURE_PARAM(size_t,Nit: TimeDelta
Then the conversion below isn't needed.
last_input_time_ = base::TimeTicks::Now();Nit: last_input_use_case_time_
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
BASE_FEATURE_PARAM(size_t,Nit: TimeDelta
Then the conversion below isn't needed.
Done
last_input_time_ = base::TimeTicks::Now();Thiabaud EngelbrechtNit: last_input_use_case_time_
Done
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |