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

Issue 2185033002: Emulation.setVirtualTimePolicy to have an optional virtual time budge (Closed)

Created:
4 years, 4 months ago by alex clarke (OOO till 29th)
Modified:
4 years, 4 months ago
Reviewers:
dgozman, Sami, pfeldman
CC:
chromium-reviews, caseq+blink_chromium.org, jam, lushnikov+blink_chromium.org, blink-reviews-api_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, darin-cc_chromium.org, sergeyv+blink_chromium.org, kinuko+watch, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Emulation.setVirtualTimePolicy to have an optional virtual time budge If virtualTimeBudgetSeconds is set then after the specified virtual seconds have elapsed, virtual time pauses and an Emulation.virtualTimeBudgetExpired event is sent. BUG=546953 Committed: https://crrev.com/bf703da2bab3ddb36ce1b342b1a844e6dc048387 Cr-Commit-Position: refs/heads/master@{#409218}

Patch Set 1 #

Patch Set 2 : Simplify patch #

Total comments: 8

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : Rename parameter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -8 lines) Patch
M content/browser/devtools/protocol/devtools_protocol_browsertest.cc View 1 2 3 6 chunks +56 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 1 chunk +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/InspectorEmulationAgent.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/InspectorEmulationAgent.cpp View 1 2 3 3 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (13 generated)
alex clarke (OOO till 29th)
PTAL
4 years, 4 months ago (2016-07-27 13:35:19 UTC) #4
Sami
I wonder if we should instead have "virtual time limit" which both triggers a notification ...
4 years, 4 months ago (2016-07-28 10:49:30 UTC) #7
dgozman
What do we expect the client to do in the notification? Could you please provide ...
4 years, 4 months ago (2016-07-28 17:12:42 UTC) #8
alex clarke (OOO till 29th)
This is a simplification of the patch. Does it look better?
4 years, 4 months ago (2016-08-01 15:14:28 UTC) #10
dgozman
This approach looks good. https://codereview.chromium.org/2185033002/diff/20001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2185033002/diff/20001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode110 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:110: m_virtualTimeEnabled = true; Should we ...
4 years, 4 months ago (2016-08-01 16:03:32 UTC) #11
alex clarke (OOO till 29th)
All done. https://codereview.chromium.org/2185033002/diff/20001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): https://codereview.chromium.org/2185033002/diff/20001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode110 third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:110: m_virtualTimeEnabled = true; On 2016/08/01 16:03:31, dgozman ...
4 years, 4 months ago (2016-08-01 16:45:24 UTC) #13
dgozman
https://codereview.chromium.org/2185033002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2185033002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode818 third_party/WebKit/Source/core/inspector/browser_protocol.json:818: { "name": "virtualTimeBudgetMs", "type": "integer", "optional": true, "description": "If ...
4 years, 4 months ago (2016-08-01 19:53:14 UTC) #17
alex clarke (OOO till 29th)
PTAL https://codereview.chromium.org/2185033002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2185033002/diff/40001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode818 third_party/WebKit/Source/core/inspector/browser_protocol.json:818: { "name": "virtualTimeBudgetMs", "type": "integer", "optional": true, "description": ...
4 years, 4 months ago (2016-08-02 15:42:59 UTC) #18
dgozman
> https://codereview.chromium.org/2185033002/diff/40001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp > File third_party/WebKit/Source/web/InspectorEmulationAgent.cpp (right): > > https://codereview.chromium.org/2185033002/diff/40001/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp#newcode120 > third_party/WebKit/Source/web/InspectorEmulationAgent.cpp:120: > frontend()->virtualTimeBudgetExpired(); > On ...
4 years, 4 months ago (2016-08-02 16:14:32 UTC) #19
alex clarke (OOO till 29th)
Thanks!
4 years, 4 months ago (2016-08-02 16:15:29 UTC) #20
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/2185033002/60001
4 years, 4 months ago (2016-08-02 16:16:00 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-02 17:26:08 UTC) #24
commit-bot: I haz the power
4 years, 4 months ago (2016-08-02 17:29:16 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/bf703da2bab3ddb36ce1b342b1a844e6dc048387
Cr-Commit-Position: refs/heads/master@{#409218}

Powered by Google App Engine
This is Rietveld 408576698