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

Issue 424533002: Cleans up usage of ViewManagerServiceImpl::roots_ (Closed)

Created:
6 years, 5 months ago by sky
Modified:
6 years, 4 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Cleans up usage of ViewManagerServiceImpl::roots_ . roots_ now always contains the root nodes. Previously I would add a fake id if a connection had roots_ and they were all removed. I'ved nuked that too. . Fixed bug in ProcessNodeHierarchyChanged. Specifically if a connection added a new node that it didn't previously know about the set of known nodes needed to be updated. This is only matters for the window manager and may only come up in tests. . GetUnknownNodes needed to check access policy. . All children are now removed as part of an embed. Previously this wasn't done for the wm, but I can't see a good reason to keep that. . Node::Destroy() would never complete if any of the children were from another connection. . Client lib wasn't properly mapping in nodes from another connection. . Updated a couple of tests appropriately. BUG=397660 TEST=covered by tests R=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285837

Patch Set 1 #

Patch Set 2 : delete #

Total comments: 6

Patch Set 3 : fix attempt 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+146 lines, -106 lines) Patch
M mojo/services/public/cpp/view_manager/lib/node.cc View 1 2 1 chunk +11 lines, -2 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/view_manager_client_impl.cc View 1 2 6 chunks +22 lines, -6 lines 0 comments Download
M mojo/services/public/cpp/view_manager/node.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/tests/view_manager_unittest.cc View 2 chunks +28 lines, -16 lines 0 comments Download
M mojo/services/view_manager/ids.h View 1 2 2 chunks +5 lines, -4 lines 0 comments Download
M mojo/services/view_manager/root_node_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/services/view_manager/view_manager_service_impl.h View 1 chunk +6 lines, -6 lines 0 comments Download
M mojo/services/view_manager/view_manager_service_impl.cc View 8 chunks +17 lines, -26 lines 0 comments Download
M mojo/services/view_manager/view_manager_unittest.cc View 3 chunks +55 lines, -45 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sky
https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc File mojo/services/public/cpp/view_manager/lib/node.cc (right): https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc#newcode223 mojo/services/public/cpp/view_manager/lib/node.cc:223: child->LocalDestroy(); I think this is right, but now I'm ...
6 years, 5 months ago (2014-07-26 16:21:39 UTC) #1
Ben Goodger (Google)
https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc File mojo/services/public/cpp/view_manager/lib/node.cc (right): https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc#newcode223 mojo/services/public/cpp/view_manager/lib/node.cc:223: child->LocalDestroy(); On 2014/07/26 16:21:39, sky wrote: > I think ...
6 years, 5 months ago (2014-07-26 16:49:10 UTC) #2
sky
Take another look? https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc File mojo/services/public/cpp/view_manager/lib/node.cc (right): https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc#newcode223 mojo/services/public/cpp/view_manager/lib/node.cc:223: child->LocalDestroy(); On 2014/07/26 16:49:10, Ben Goodger ...
6 years, 5 months ago (2014-07-26 20:46:23 UTC) #3
Ben Goodger (Google)
lgtm https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc File mojo/services/public/cpp/view_manager/lib/node.cc (right): https://codereview.chromium.org/424533002/diff/20001/mojo/services/public/cpp/view_manager/lib/node.cc#newcode223 mojo/services/public/cpp/view_manager/lib/node.cc:223: child->LocalDestroy(); OK
6 years, 5 months ago (2014-07-26 22:56:15 UTC) #4
sky
The CQ bit was checked by sky@chromium.org
6 years, 4 months ago (2014-07-27 00:09:51 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sky@chromium.org/424533002/40001
6 years, 4 months ago (2014-07-27 00:10:26 UTC) #6
commit-bot: I haz the power
6 years, 4 months ago (2014-07-27 11:30:12 UTC) #7
Message was sent while issue was closed.
Change committed as 285837

Powered by Google App Engine
This is Rietveld 408576698