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

Issue 2690013002: Revert of Stop MenuItemView From Directly Caching MenuController (Closed)

Created:
3 years, 10 months ago by msramek
Modified:
3 years, 10 months ago
Reviewers:
jonross, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Stop MenuItemView From Directly Caching MenuController (patchset #1 id:1 of https://codereview.chromium.org/2684993009/ ) Reason for revert: Significant memory leak caught by ChromeOS ASan/LSan in the test added by this CL. For details, please see: https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20ASan%20LSan%20Tests%20%281%29/builds/19518/steps/views_unittests/logs/MenuControllerTest.HostReceivesInputBeforeDestruction Original issue's description: > Stop MenuItemView From Directly Caching MenuController > > When a MenuController closes its associated Widget is destroyed later on the > MessageLoop. Due to this it is possible for a MenuHostRootView to receive input > while the associated MenuController has been destroyed. > > MenuHostRootView accesses the MenuController through MenuItemView which simply > caches it. This change updates MenuItemView to take a WeakPtr to the controller. > > TEST=MenuControllerTest.HostReceivesInputBeforeDestruction > BUG=690097 > > Review-Url: https://codereview.chromium.org/2684993009 > Cr-Commit-Position: refs/heads/master@{#449663} > Committed: https://chromium.googlesource.com/chromium/src/+/549b48a07f5ac2def1b8ad0549f3fddaf67b7ff5 TBR=sky@chromium.org,jonross@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=690097 Review-Url: https://codereview.chromium.org/2690013002 Cr-Commit-Position: refs/heads/master@{#449929} Committed: https://chromium.googlesource.com/chromium/src/+/b18851a60fd1a0820c00185bd660fc52bec31648

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -44 lines) Patch
M ui/views/controls/menu/menu_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 6 chunks +1 line, -29 lines 0 comments Download
M ui/views/controls/menu/menu_item_view.h View 3 chunks +2 lines, -9 lines 0 comments Download
M ui/views/controls/menu/menu_item_view.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/menu/submenu_view.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
msramek
Created Revert of Stop MenuItemView From Directly Caching MenuController
3 years, 10 months ago (2017-02-13 09:25:14 UTC) #2
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/2690013002/1
3 years, 10 months ago (2017-02-13 09:25:34 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/320297)
3 years, 10 months ago (2017-02-13 10:28:50 UTC) #5
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/2690013002/1
3 years, 10 months ago (2017-02-13 10:34:39 UTC) #7
commit-bot: I haz the power
3 years, 10 months ago (2017-02-13 10:59:29 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/b18851a60fd1a0820c00185bd660...

Powered by Google App Engine
This is Rietveld 408576698