Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Issue 8227038: Sync Promo: Close browser tab when closing promo (Closed)

Created:
9 years, 2 months ago by sail
Modified:
9 years, 2 months ago
CC:
chromium-reviews, estade+watch_chromium.org, sky
Visibility:
Public.

Description

Sync 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -17 lines) Patch
M chrome/browser/ui/browser_list.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_list.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/ntp/ntp_login_handler.cc View 2 chunks +2 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/sync_promo_handler.cc View 1 2 3 4 3 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
sail
jhawkins: please review sky: FYI
9 years, 2 months ago (2011-10-12 06:27:33 UTC) #1
James Hawkins
http://codereview.chromium.org/8227038/diff/3001/chrome/browser/ui/browser_list.cc File chrome/browser/ui/browser_list.cc (right): http://codereview.chromium.org/8227038/diff/3001/chrome/browser/ui/browser_list.cc#newcode687 chrome/browser/ui/browser_list.cc:687: Browser* BrowserList::FindBrowserWithTabContents(TabContents* tab_contents) { DCHECK(tab_contents). http://codereview.chromium.org/8227038/diff/3001/chrome/browser/ui/browser_list.cc#newcode689 chrome/browser/ui/browser_list.cc:689: TabContents* tab ...
9 years, 2 months ago (2011-10-12 17:34:18 UTC) #2
sail
http://codereview.chromium.org/8227038/diff/3001/chrome/browser/ui/browser_list.cc File chrome/browser/ui/browser_list.cc (right): http://codereview.chromium.org/8227038/diff/3001/chrome/browser/ui/browser_list.cc#newcode687 chrome/browser/ui/browser_list.cc:687: Browser* BrowserList::FindBrowserWithTabContents(TabContents* tab_contents) { On 2011/10/12 17:34:18, James Hawkins ...
9 years, 2 months ago (2011-10-12 17:54:12 UTC) #3
James Hawkins
lgtm
9 years, 2 months ago (2011-10-12 17:57:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8227038/8001
9 years, 2 months ago (2011-10-12 18:00:03 UTC) #5
commit-bot: I haz the power
Can't apply patch for file chrome/browser/ui/webui/sync_promo_handler.cc. While running patch -p1 --forward --force; patching file chrome/browser/ui/webui/sync_promo_handler.cc ...
9 years, 2 months ago (2011-10-12 18:00:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sail@chromium.org/8227038/9007
9 years, 2 months ago (2011-10-12 18:06:42 UTC) #7
commit-bot: I haz the power
9 years, 2 months ago (2011-10-12 22:28:31 UTC) #8
Change committed as 105174

Powered by Google App Engine
This is Rietveld 408576698