• Henrique Nakashima's avatar
    Create FeatureList and PrefService early in Cast. · 42ec7eb9
    Henrique Nakashima authored
    TaskScheduler requires the FeatureList, so it needs to be moved
    from CastBrowserMainParts::PreCreateThreads() to an earlier point,
    CastMainDelegate::PostEarlyInitialization().
    
    The creation of the "singleton" FieldTrialList instance also needs
    to be moved to CastMainDelegate::PostEarlyInitialization(), since the
    FeatureList initialization depends on the FieldTrialList. Its
    ownership was transferred from BrowserMainParts to CastMainDelegate.
    
    A new CastFeatureListCreator class holds ownership of the service
    while the browser process isn't started.
    
    Bug: 887459
    Change-Id: I4bcd60720518807e2089ec99a3f7db3e647203d6
    Reviewed-on: https://chromium-review.googlesource.com/c/1308096
    Commit-Queue: Henrique Nakashima <hnakashima@chromium.org>
    Reviewed-by: default avatarLuke Halliwell <halliwell@chromium.org>
    Reviewed-by: default avatarXi Han <hanxi@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604920}
    42ec7eb9
cast_main_delegate.h 2.5 KB