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

Issue 2470933002: Disable agents when client disconnects (Closed)

Created:
4 years, 1 month ago by Sarmad Hashmi
Modified:
4 years, 1 month ago
Reviewers:
sadrul
CC:
chromium-reviews, pfeldman, devtools-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable agents when client disconnects Create a Disable method for the UiDevToolsAgent which calls the disable method on agent that subclasses from generated backends. This is then called from the UiDevToolsClient, which in turn has a DisableAllAgents method called by the UiDevToolsServer when a client disconnects from the inspector. BUG=648701 Committed: https://crrev.com/ca5eebc52d4de0237b911dbd9ec9808a6735b050 Cr-Commit-Position: refs/heads/master@{#429591}

Patch Set 1 #

Total comments: 6

Patch Set 2 : sadruls comments #

Total comments: 2

Patch Set 3 : sadruls comments #

Patch Set 4 : update to use new devtools style #

Patch Set 5 : update to use new devtools style #

Patch Set 6 : update to use new devtools style #

Patch Set 7 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -2 lines) Patch
M components/ui_devtools/devtools_base_agent.h View 1 2 3 4 5 6 2 chunks +15 lines, -1 line 0 comments Download
M components/ui_devtools/devtools_client.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M components/ui_devtools/devtools_client.cc View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M components/ui_devtools/devtools_server.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 38 (30 generated)
Sarmad Hashmi
CL disables agents upon client disconnect so we can eventually remove the DOM agent as ...
4 years, 1 month ago (2016-11-01 21:51:55 UTC) #2
sadrul
https://codereview.chromium.org/2470933002/diff/1/components/ui_devtools/devtools_base_agent.h File components/ui_devtools/devtools_base_agent.h (right): https://codereview.chromium.org/2470933002/diff/1/components/ui_devtools/devtools_base_agent.h#newcode31 components/ui_devtools/devtools_base_agent.h:31: void Init(protocol::UberDispatcher* dispatcher) override { Before this line, add: ...
4 years, 1 month ago (2016-11-02 01:45:39 UTC) #7
Sarmad Hashmi
https://codereview.chromium.org/2470933002/diff/1/components/ui_devtools/devtools_base_agent.h File components/ui_devtools/devtools_base_agent.h (right): https://codereview.chromium.org/2470933002/diff/1/components/ui_devtools/devtools_base_agent.h#newcode31 components/ui_devtools/devtools_base_agent.h:31: void Init(protocol::UberDispatcher* dispatcher) override { On 2016/11/02 01:45:38, sadrul ...
4 years, 1 month ago (2016-11-02 02:43:53 UTC) #9
sadrul
lgtm https://codereview.chromium.org/2470933002/diff/20001/components/ui_devtools/devtools_client.h File components/ui_devtools/devtools_client.h (right): https://codereview.chromium.org/2470933002/diff/20001/components/ui_devtools/devtools_client.h#newcode32 components/ui_devtools/devtools_client.h:32: void DisableAllAgents(); This should go into private section? ...
4 years, 1 month ago (2016-11-02 16:05:57 UTC) #13
Sarmad Hashmi
https://codereview.chromium.org/2470933002/diff/20001/components/ui_devtools/devtools_client.h File components/ui_devtools/devtools_client.h (right): https://codereview.chromium.org/2470933002/diff/20001/components/ui_devtools/devtools_client.h#newcode32 components/ui_devtools/devtools_client.h:32: void DisableAllAgents(); On 2016/11/02 16:05:57, sadrul wrote: > This ...
4 years, 1 month ago (2016-11-02 16:38:57 UTC) #16
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/2470933002/120001
4 years, 1 month ago (2016-11-03 15:12:06 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 1 month ago (2016-11-03 15:18:19 UTC) #36
commit-bot: I haz the power
4 years, 1 month ago (2016-11-03 15:40:54 UTC) #38
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/ca5eebc52d4de0237b911dbd9ec9808a6735b050
Cr-Commit-Position: refs/heads/master@{#429591}

Powered by Google App Engine
This is Rietveld 408576698