commit | d8d37726e461d59b0ad6179e109373b3d17ba480 | [log] [tgz] |
---|---|---|
author | Christopher Cameron <ccameron@chromium.org> | Thu Jun 13 00:57:38 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jun 13 00:57:38 2019 |
tree | 7c114699b2a0eae21f42566f9aac48da552426cf | |
parent | cdae036f3f64f6d48c0ec8e419ebc2f849fb0444 [diff] |
MacPWAs: Change ColorPanelCocoa to singleton ColorPanelListener Prior to this patch each ColorChooserMac allocated its own ColorPanelCocoa, which would act as an observer on the NSColorPanel. This ends up with some fairly intricate lifetime management (e.g, crbug.com/767598) which gets more complicated when trying to add out-of-process support. Avoid these lifetime management issues by making the class be a singleton that observes the singleton NSColorPanel. Be more explicit about the use of the global ColorChooserMac -- call it directly from ColorPanelListener rather than storing it as a redundant member variable. Bug: 948065 Change-Id: I31b88562feafeebafd219f99ff266b8200400178 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1655208 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by: Trent Apted <tapted@chromium.org> Cr-Commit-Position: refs/heads/master@{#668650}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .