Chromium Code Reviews
DescriptionSync Promo: Close browser tab when closing promo
This is part one of a two part change to adjust how we show the sync promo at startup.
Currently, at startup, we show the sync promo and the welcome page. When the user completes the promo (or skips it) we navigate to the new tab page.
We want to adjust the start up flow so that instead of replacing the standard first tab with the sync promo we show it along side the promo.
For example, if the standard startup tabs would be:
Google.com, Welcome
Then the new startup tabs will be:
Sync Promo, Google.com, Welcome
Once the user completes (or skips) the sync promo we want to leave them with the same set of tabs that they would normally have. To do this we want to close the sync promo tab.
This CL is simply the first part of that work. If the promo page was displayed at startup then we close the browser tab once the user completes the sync setup. To detect that the promo was displayed at startup we just check the back history for the tab. There's no back history only when the promo page was displayed at startup.
BUG=99743
TEST=
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105174
Patch Set 1 #Patch Set 2 : comments #Patch Set 3 : remove old code #
Total comments: 9
Patch Set 4 : address review comments #Patch Set 5 : fix merge issues #
Messages
Total messages: 8 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||