Revert "ChromeBrowserInitializer offers runNowOrAfterFullBrowserStarted()."
This reverts commit 628f57c2. Reason for revert: Breaks ChromeCustomTabsConnectionTest (crbug.com/1048438). Might have broken other things. Will reland a fixed version. Original change's description: > ChromeBrowserInitializer offers runNowOrAfterFullBrowserStarted(). > > Instead of runNowOrAfterNativeInitialization(), the method should > enqueue tasks to run when full browser starts, and not when native is > started. There is a distinction - reduced mode means native is started > but full browser, which includes Profiles, isn't. > > This fixes a crash when transitioning from reduced mode to full browser > if a task that uses Profile was scheduled with > runNowOrAfterNativeInitialization(). Now, it will only run after the > transition, rather than immediately. > > Also change hasNativeInitializationCompleted() to > isFullBrowserInitialized() and update clients. All but DownloadMetrics > are meant to run in full browser, so that should actually revert their > behavior back to what it was before reduced mode was introduced. > > DownloadMetrics still checks if native was loaded, which includes in > reduced mode. > > Bug: 1045945, 1014098 > Change-Id: Icdeed1ad6a1999fe518c551c404285170a7118e5 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2032049 > Reviewed-by: Michael Thiessen <mthiesse@chromium.org> > Reviewed-by: Mohamed Heikal <mheikal@chromium.org> > Reviewed-by: Xi Han <hanxi@chromium.org> > Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> > Cr-Commit-Position: refs/heads/master@{#737823} TBR=mthiesse@chromium.org,hanxi@chromium.org,hnakashima@chromium.org,mheikal@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 1045945, 1014098 Change-Id: Ia9f37440cd2c39fc73d74cae8dc52572a01fe742 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2037644 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by:Henrique Nakashima <hnakashima@chromium.org> Cr-Commit-Position: refs/heads/master@{#738335}
Showing
Please register or sign in to comment