-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M116] printing: Fix primary user profile access
CupsProxyServiceManager is KeyedService and is created during profile loading. It creates CupsProxyServiceDelegateImpl when CupsProxyClient thinks underlying dbus service is available. CupsProxyServiceDelegateImpl reaches for primary user profile in it constructor. There is a race between profile finish loading and dbus service availability. When dbus availability is signaled earlier than profile loading, DumpWithoutCrashing in ProfileManager::GetPrimaryUserProfile would be hit. Since CupsProxyServiceManager is a KeyedService and knows the profile, we don't have to reach out to ProfileManager to get it. This CL does the following: - Create CupsProxyServiceManager only for the primary user profile; - Pass down Profile explicitly to CupsProxyServiceDelegateImpl; (cherry picked from commit 7e5575b) Bug: 1424583 Change-Id: I6033318eff3d76126fceaeb901b57f8794c723e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4634497 Reviewed-by: Paul Moy <pmoy@chromium.org> Reviewed-by: Benjamin Gordon <bmgordon@chromium.org> Commit-Queue: Xiyuan Xia <xiyuan@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1161308} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4646674 Auto-Submit: Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Benjamin Gordon <bmgordon@chromium.org> Cr-Commit-Position: refs/branch-heads/5845@{#100} Cr-Branched-From: 5a5dff6-refs/heads/main@{#1160321}
- Loading branch information
Xiyuan Xia
authored and
Chromium LUCI CQ
committed
Jun 26, 2023
1 parent
f642bc8
commit 01735cb
Showing
5 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters