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

Issue 22510004: Show sync setup in same tab as sign in instead of active tab. (Closed)

Created:
7 years, 4 months ago by fdoray
Modified:
7 years, 4 months ago
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Show sync setup in same tab as sign in instead of active tab. When the user wanted to "Choose what to sync" in an explicit sign in, the sync setup page was displayed in the active tab at the end of the sign in process (except for "Sign in" initiated from the Settings page). However, the user can change the active tab before that happens. With this fix, the sync setup page is loaded in the same tab as the sign in flow. If the sign in tab has been closed, a new tab is created. The sync setup tab is also activated if it's not already. TEST= 1. Open Chrome with a clean profile. 2. Sign in from the NTP, hot-dog menu or startup promo. Check "Choose what to sync". 3. After clicking on 'Submit', immediately navigate to some other tab. Expected result: The sync setup page is loaded in the sign in tab and this tab is activated. BUG=242428 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216859

Patch Set 1 #

Patch Set 2 : Fix comments #

Patch Set 3 : Fix style #

Total comments: 5

Patch Set 4 : Rebase #

Patch Set 5 : Add web_contents parameter to ShowSyncSettingsPageInWebContents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -36 lines) Patch
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 12 chunks +30 lines, -19 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.h View 1 2 3 4 5 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter.cc View 1 2 3 4 3 chunks +20 lines, -11 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_sync_starter_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/inline_login_ui.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
fdoray
Could you review this CL? Thanks.
7 years, 4 months ago (2013-08-08 19:47:02 UTC) #1
fdoray
+estade@ Owner for chrome/browser/ui/webui/* +guohui@ Can you review chrome/browser/ui/webui/inline_login_ui.cc?
7 years, 4 months ago (2013-08-08 19:48:46 UTC) #2
noms
https://codereview.chromium.org/22510004/diff/5001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/22510004/diff/5001/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode1191 chrome/browser/ui/sync/one_click_signin_helper.cc:1191: sync_setup_contents = web_contents(); What's the difference between web_contents() here ...
7 years, 4 months ago (2013-08-08 20:19:24 UTC) #3
guohui
On 2013/08/08 19:48:46, fdoray wrote: > +estade@ > Owner for chrome/browser/ui/webui/* > > +guohui@ > ...
7 years, 4 months ago (2013-08-08 20:19:27 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/22510004/diff/5001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/22510004/diff/5001/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode1191 chrome/browser/ui/sync/one_click_signin_helper.cc:1191: sync_setup_contents = web_contents(); On 2013/08/08 20:19:24, noms wrote: ...
7 years, 4 months ago (2013-08-08 20:49:54 UTC) #5
fdoray
Monica: I addressed your comments. Evan: Could you review this CL? https://codereview.chromium.org/22510004/diff/5001/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): ...
7 years, 4 months ago (2013-08-09 15:31:13 UTC) #6
noms
lgtm
7 years, 4 months ago (2013-08-09 15:32:36 UTC) #7
Evan Stade
lgtm
7 years, 4 months ago (2013-08-09 20:51:12 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fdoray@chromium.org/22510004/26001
7 years, 4 months ago (2013-08-10 01:10:22 UTC) #9
commit-bot: I haz the power
7 years, 4 months ago (2013-08-10 14:59:56 UTC) #10
Message was sent while issue was closed.
Change committed as 216859

Powered by Google App Engine
This is Rietveld 408576698