DescriptionDownloadTestObserver should know when the DownloadManager was shutdown
DownloadTestObserver now uses ManagerGoingDown() interface to know
whether its manager was shutdown. This allows it to use a raw pointer
instead of a refptr.
By removing the refptr to DownloadManager, this commit will help the
change of DownloadManager to be owned by BrowserContext instead of a
refcounted object.
Previously we were piggybacking on the refptr to bind callbacks with
download manager. Now we use weak pointers to the DownloadTestObserver
object itself, and it'll guard whether the download manager was
shutdown or not.
This patch also removes some outdated commentary about "file select
dialog".
BUG=237871
TEST=content_unittests and browser_tests with filter for Download\*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=201539
Patch Set 1 #
Total comments: 1
Patch Set 2 : Use CHECK_EQ #
Messages
Total messages: 7 (0 generated)
|