[Paint Preview] Fix startup bug with Start Surface enabled
When StartSurface experiment is enabled, it will either: 1. Be shown on startup if a certain condition is met, or 2. Not be shown on startup. Currently, paint preview is not displayed on startup if StartSurface is enabled, regardless of whether StartSurface will be actually shown or not (1 or 2 above). This CL will display paint preview on startup if StartSurface is enabled AND it won't be shown on startup (scenario 2 above). This is done by making sure that ReturnToChromeExperimentsUtil#getTotalTabCount works correctly when it's called pre-native and PAINT_PREVIEW_SHOW_ON_STARTUP experiment is enabled. Bug: 1134752 Change-Id: I4d51396d82bee837184db038198770905a7f972c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2472432 Commit-Queue: Mehran Mahmoudi <mahmoudi@chromium.org> Reviewed-by:Mehran Mahmoudi <mahmoudi@chromium.org> Reviewed-by:
Wei-Yin Chen (陳威尹) <wychen@chromium.org> Auto-Submit: Mehran Mahmoudi <mahmoudi@chromium.org> Cr-Commit-Position: refs/heads/master@{#817215}
Showing
Please register or sign in to comment