-
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.
Migrate ChromeExtensionTestNotificationObserver off of Notification S…
…ervice Note these intentional changes: 1. Since NotificationSet is essentially polling for a change in the result of the predicate passed to it instead of waiting for a specific event, we don't bother having callers specify which notifications to check the predicate on. 2. Observing render process termination appears to be redundant with OnExtensionFrameUnregistered for the purposes of this class, so we no longer explicitly observe the former. 3. It does not appear necessary to observe all sources, so we now only observe any existing extension related WebContents at the creation of the observer and then any WebContents created afterwards. Bug: 1174764, 357627 Change-Id: I64ac3d2810fc49bb5ef2ebc18cad8c9f8fd5f404 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4654944 Auto-Submit: Kevin McNee <mcnee@chromium.org> Commit-Queue: Kevin McNee <mcnee@chromium.org> Reviewed-by: David Bertoni <dbertoni@chromium.org> Cr-Commit-Position: refs/heads/main@{#1184319}
- Loading branch information
Showing
3 changed files
with
53 additions
and
65 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