DescriptionShut down the ServiceWorker system as the browser's shutting down.
This avoids a DCHECK in ProfileDestroyer::DestroyProfileWhenAppropriate.
I also added a Chrome-side browsertest for the Service Worker system, where we
can check other things that only show up with this embedder.
I tried to move the DCHECK into ~BrowserContext so that we wouldn't need to
expose the Terminate() function across the Content API, but:
* BrowserContext doesn't know whether it's a "testing" profile.
* There is no BrowserContext::GetOffTheRecordProfile with which to check that
transitive processes have been shut down.
* (Minor) GetHostsForProfile() works by iterating over all hosts, and moving the
DCHECK to ~BrowserContext would have doubled the number of iterations needed.
BUG=368570
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=273741
Patch Set 1 #Patch Set 2 : Fix Windows by adding a FILE_PATH_LITERAL. #
Total comments: 2
Patch Set 3 : Remove a redundant clear() #Messages
Total messages: 14 (0 generated)
|