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

Issue 11953066: Reland 179231 (Closed)

Created:
7 years, 11 months ago by xiyuan
Modified:
7 years, 10 months ago
CC:
chromium-reviews, tfarina, sadrul, ben+watch_chromium.org
Visibility:
Public.

Description

Reland 179231 > views: Fix a Widget destruction crash. > > For WIDGET_OWNS_NATIVE_WIDGET widget, we destroy root view before we delete > |native_widget_|. If a WidgetDelegateView is in root view's hierarchy, the > native widget destruction would crash because |widget_delegate_| is accessed > in OnNativeWidgetDestroying but it is deleted with root view already. > > This CL marks WidgetDelegateView as owned by client so that it does not go > away with the root view hierarchy and be deleted on DeleteDelegate. > > BUG=164791 > TEST=Covered with a new unit test. > > R=ben@chromium.org BUG=164791, 172842 TEST=No memory leak as in 172842. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179694

Patch Set 1 #

Total comments: 1

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : update comment #

Patch Set 4 : rebase, fix signin screen test failures #

Patch Set 5 : fix DesktopBackgroundView leak #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -9 lines) Patch
M ash/desktop_background/desktop_background_view.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M ash/launcher/launcher.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shell/window_type_launcher.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/webui_login_view.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ui/oak/oak_window.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/test/child_modal_window.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/widget_delegate.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/widget/widget_delegate.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M ui/views/widget/widget_unittest.cc View 1 2 3 4 2 chunks +23 lines, -1 line 0 comments Download
M ui/views/window/dialog_delegate.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/window/dialog_delegate.cc View 1 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
xiyuan
Let me know what you think. Thanks. https://codereview.chromium.org/11953066/diff/1/ash/launcher/launcher.cc File ash/launcher/launcher.cc (right): https://codereview.chromium.org/11953066/diff/1/ash/launcher/launcher.cc#newcode99 ash/launcher/launcher.cc:99: class Launcher::DimmerView ...
7 years, 11 months ago (2013-01-23 23:46:28 UTC) #1
Ben Goodger (Google)
lgtm https://codereview.chromium.org/11953066/diff/1010/ui/views/widget/widget_delegate.h File ui/views/widget/widget_delegate.h (right): https://codereview.chromium.org/11953066/diff/1010/ui/views/widget/widget_delegate.h#newcode167 ui/views/widget/widget_delegate.h:167: // implementation is-a View. you should note the ...
7 years, 10 months ago (2013-01-28 17:31:14 UTC) #2
xiyuan
https://codereview.chromium.org/11953066/diff/1010/ui/views/widget/widget_delegate.h File ui/views/widget/widget_delegate.h (right): https://codereview.chromium.org/11953066/diff/1010/ui/views/widget/widget_delegate.h#newcode167 ui/views/widget/widget_delegate.h:167: // implementation is-a View. On 2013/01/28 17:31:14, Ben Goodger ...
7 years, 10 months ago (2013-01-28 18:50:09 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/11953066/16001
7 years, 10 months ago (2013-01-28 19:20:29 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=78239
7 years, 10 months ago (2013-01-28 20:34:12 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/11953066/10004
7 years, 10 months ago (2013-01-28 22:35:56 UTC) #6
commit-bot: I haz the power
Change committed as 179231
7 years, 10 months ago (2013-01-29 00:56:11 UTC) #7
xiyuan
valgrind bot is broken. Run the tests locally and the leak seems fixed.
7 years, 10 months ago (2013-01-30 18:14:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xiyuan@chromium.org/11953066/9004
7 years, 10 months ago (2013-01-30 18:16:20 UTC) #9
commit-bot: I haz the power
7 years, 10 months ago (2013-01-30 20:57:05 UTC) #10
Message was sent while issue was closed.
Change committed as 179694

Powered by Google App Engine
This is Rietveld 408576698