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

Issue 557513002: Deregister window classes (Closed)

Created:
6 years, 3 months ago by DaveMoore
Modified:
6 years, 3 months ago
CC:
chromium-reviews, cpu_(ooo_6.6-7.5), Peter Kasting
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Deregister window classes BUG= Committed: https://crrev.com/445ee792be6efa64d9da2c67b05a7ec0c01c65dd Cr-Commit-Position: refs/heads/master@{#294617}

Patch Set 1 #

Patch Set 2 : Add switch to control window unregistering #

Total comments: 6

Patch Set 3 : Address review concerns #

Patch Set 4 : Address review concerns #

Patch Set 5 : Address review concerns #

Patch Set 6 : Use RegisterTask() instead of RegisterCallback() #

Patch Set 7 : Minor indent fix #

Total comments: 3

Patch Set 8 : Use RegisterTask() for real #

Patch Set 9 : Make name arg a const ref #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -5 lines) Patch
M ui/gfx/win/window_impl.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gfx/win/window_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +41 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (2 generated)
DaveMoore
On mojo it's possible to unload this code. That leaves windows with references to invalid ...
6 years, 3 months ago (2014-09-08 22:29:41 UTC) #2
Ben Goodger (Google)
lgtm, curious to hear from Bernhard why this was removed.
6 years, 3 months ago (2014-09-08 23:03:59 UTC) #3
Bernhard Bauer
Okay, IIRC it was something like this: Back when the ClassRegistrar was non-leaky, it would ...
6 years, 3 months ago (2014-09-09 08:04:06 UTC) #4
DaveMoore
Add switch to control window unregistering
6 years, 3 months ago (2014-09-10 14:11:37 UTC) #5
DaveMoore
I made unregistering the window classes something that could be set via a static method ...
6 years, 3 months ago (2014-09-11 00:30:03 UTC) #6
Bernhard Bauer
https://codereview.chromium.org/557513002/diff/20001/mojo/services/view_manager/view_manager_unittest.cc File mojo/services/view_manager/view_manager_unittest.cc (right): https://codereview.chromium.org/557513002/diff/20001/mojo/services/view_manager/view_manager_unittest.cc#newcode441 mojo/services/view_manager/view_manager_unittest.cc:441: gfx::WindowImpl::SetUnregisterClassesAtExit(true); This relies somewhat on the fact that there ...
6 years, 3 months ago (2014-09-11 08:45:07 UTC) #7
DaveMoore
Address review concerns
6 years, 3 months ago (2014-09-12 03:57:22 UTC) #8
DaveMoore
Address review concerns
6 years, 3 months ago (2014-09-12 03:58:54 UTC) #9
DaveMoore
Address review concerns
6 years, 3 months ago (2014-09-12 04:04:20 UTC) #10
DaveMoore
Use RegisterTask() instead of RegisterCallback()
6 years, 3 months ago (2014-09-12 04:24:44 UTC) #11
DaveMoore
Minor indent fix
6 years, 3 months ago (2014-09-12 04:26:49 UTC) #12
DaveMoore
https://codereview.chromium.org/557513002/diff/20001/mojo/services/view_manager/view_manager_unittest.cc File mojo/services/view_manager/view_manager_unittest.cc (right): https://codereview.chromium.org/557513002/diff/20001/mojo/services/view_manager/view_manager_unittest.cc#newcode441 mojo/services/view_manager/view_manager_unittest.cc:441: gfx::WindowImpl::SetUnregisterClassesAtExit(true); Changed it to use RegisterTask() instead. On 2014/09/11 ...
6 years, 3 months ago (2014-09-12 04:27:29 UTC) #13
Bernhard Bauer
LGTM w/ nits (seems like you have compile errors though) https://codereview.chromium.org/557513002/diff/120001/ui/gfx/win/window_impl.cc File ui/gfx/win/window_impl.cc (right): https://codereview.chromium.org/557513002/diff/120001/ui/gfx/win/window_impl.cc#newcode63 ...
6 years, 3 months ago (2014-09-12 08:22:33 UTC) #14
DaveMoore
Make name arg a const ref
6 years, 3 months ago (2014-09-12 16:32:35 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/557513002/160001
6 years, 3 months ago (2014-09-12 16:34:41 UTC) #17
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 0b4918ed75e3b68408126082b26e76449958ad7d
6 years, 3 months ago (2014-09-12 18:18:54 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 18:30:11 UTC) #19
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/445ee792be6efa64d9da2c67b05a7ec0c01c65dd
Cr-Commit-Position: refs/heads/master@{#294617}

Powered by Google App Engine
This is Rietveld 408576698