• Min Qin's avatar
    All callbacks to notify when InProgressDownloadManager is initialized · 39c14237
    Min Qin authored
    Currently DownloadManagerImpl intializes InProgressDownloadManager.
    However, when only ServiceManager is running, DownloadManagerImpl will
    not be created.
    As a result, some other class will initialize InProgressDownloadManager.
    And when chrome fully starts, DownloadManagerImpl needs to know whether
    InProgressManager has been initialized.
    This CL allows InProgressDownloadManager to take more callbacks to
    notify when initialized.
    So multiple classes can observe the initialization event.
    
    BUG=842245
    
    Change-Id: I5881b10db0f93f98262ab1baebc67621c2743fbe
    Reviewed-on: https://chromium-review.googlesource.com/1111027
    Commit-Queue: Min Qin <qinmin@chromium.org>
    Reviewed-by: default avatarDavid Trainor <dtrainor@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#569849}
    39c14237
in_progress_download_manager.cc 20.4 KB