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

Issue 2553703002: [Mac] Opt browser window controller out of being a touch bar provider (Closed)

Created:
4 years ago by Robert Sesek
Modified:
4 years ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/pending/branch-heads/2883
Project:
chromium
Visibility:
Public.

Description

[Mac] Opt browser window controller out of being a touch bar provider Currently, on touch bar Macs, the system retains a reference to every object it finds that conforms to the NSTouchBarProvider protocol, which includes NSWindowController. If the user tries to quit Chrome when it isn't foregrounded (for example, from the Dock icon context menu), these references are never released, which means the browser window never deallocs. Since all browser windows being closed is a precondition of quitting, Chrome never quits. There are a few private mechanisms to force the touch bar to update its providers, but no matter what, the references aren't released until Chrome is foregrounded. This change effectively opts the window controller out of being a touch bar provider which prevents it from being retained by the touch bar mechanism in the first place. BUG=667274 Review-Url: https://codereview.chromium.org/2550463002 Cr-Commit-Position: refs/heads/master@{#435759} (cherry picked from commit 0098a25b70b91b23e87a4644e30722ba151e66e2) Committed: https://chromium.googlesource.com/chromium/src/+/102fd9dc961fc353b517c8c8ff8181f7299034be

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
Robert Sesek
4 years ago (2016-12-05 16:13:09 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
102fd9dc961fc353b517c8c8ff8181f7299034be.

Powered by Google App Engine
This is Rietveld 408576698