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

Issue 2527573003: Refactor remove methods, add DCHECKS, and remove_observer boolean (Closed)

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

Description

Refactor remove methods, add DCHECKS, and remove_observer boolean This CL addresses 5 minor things: - Reorganize methods so we have methods for windows followed by widgets followed by views. - Removing nodes and removing subtrees separated into different methods - Added multiple DCHECKS - Added |remove_observer| boolean to all Remove* methods so that we can avoid situations where we remove an observer and add it back again in the same callback. This could cause the callback to be called endlessly. |remove_obsever| is false whenever we know we will add back the nodes again. - Added methods for removing view subtrees BUG=648701 Committed: https://crrev.com/2349585314f727a4aba3cf37680fe4dab999a044 Cr-Commit-Position: refs/heads/master@{#434567}

Patch Set 1 #

Total comments: 2

Patch Set 2 : sadruls comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -61 lines) Patch
M ash/common/devtools/ash_devtools_dom_agent.h View 1 chunk +24 lines, -10 lines 0 comments Download
M ash/common/devtools/ash_devtools_dom_agent.cc View 1 8 chunks +101 lines, -51 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 22 (16 generated)
Sarmad Hashmi
Please do let me know if I should split this up. Just a few minor ...
4 years, 1 month ago (2016-11-23 04:57:34 UTC) #8
sadrul
lgtm https://codereview.chromium.org/2527573003/diff/1/ash/common/devtools/ash_devtools_dom_agent.cc File ash/common/devtools/ash_devtools_dom_agent.cc (right): https://codereview.chromium.org/2527573003/diff/1/ash/common/devtools/ash_devtools_dom_agent.cc#newcode79 ash/common/devtools/ash_devtools_dom_agent.cc:79: // DOM::Backend implementation Remove these comments.
4 years ago (2016-11-25 18:19:20 UTC) #9
Sarmad Hashmi
https://codereview.chromium.org/2527573003/diff/1/ash/common/devtools/ash_devtools_dom_agent.cc File ash/common/devtools/ash_devtools_dom_agent.cc (right): https://codereview.chromium.org/2527573003/diff/1/ash/common/devtools/ash_devtools_dom_agent.cc#newcode79 ash/common/devtools/ash_devtools_dom_agent.cc:79: // DOM::Backend implementation On 2016/11/25 18:19:20, sadrul wrote: > ...
4 years ago (2016-11-25 23:27:30 UTC) #12
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/2527573003/20001
4 years ago (2016-11-26 04:07:49 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-11-26 04:14:24 UTC) #20
commit-bot: I haz the power
4 years ago (2016-11-26 04:16:22 UTC) #22
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/2349585314f727a4aba3cf37680fe4dab999a044
Cr-Commit-Position: refs/heads/master@{#434567}

Powered by Google App Engine
This is Rietveld 408576698