Port InspectorDomAgent to InspectorAgentState fields.
InnerEnable does the actual work, but doesn't set the flag, that only happens when enabled() is called (the protocol method). It'd be ok to set it anyway, it doesn't cause traffic on the wire, but I think it's a bit clearer to protect against forgetting to set it with a DCHECK. So this fixes the bug you pointed out when reviewing https://chromium-review.googlesource.com/c/chromium/src/+/1162931 and keeps the change seperate. Bug: 851762 Change-Id: Ibd65a7e69539a760af6499be3f5ff96df6b3912b Reviewed-on: https://chromium-review.googlesource.com/1163808 Commit-Queue: Johannes Henkel <johannes@chromium.org> Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Cr-Commit-Position: refs/heads/master@{#580978}
Showing
Please register or sign in to comment