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

Issue 12374007: signin: force web signin flow initiated visits to accounts.google.com to their own process. (Closed)

Created:
7 years, 9 months ago by tim (not reviewing)
Modified:
7 years, 9 months ago
CC:
chromium-reviews, sail+watch_chromium.org, Raghu Simha, haitaol1, akalin, Chris Evans, dhollowa, abarth-chromium
Visibility:
Public.

Description

signin: force web signin flow initiated visits to accounts.google.com to their own process. BUG=81265, 180062, 180064, 180067 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186550

Patch Set 1 #

Total comments: 8

Patch Set 2 : comment #

Total comments: 19

Patch Set 3 : fork non-post renderer navigations #

Patch Set 4 : some tests #

Patch Set 5 : add browser test #

Total comments: 13

Patch Set 6 : review #

Total comments: 1

Patch Set 7 : review nit #

Total comments: 2

Patch Set 8 : comment update #

Patch Set 9 : add policy test #

Total comments: 2

Patch Set 10 : use extension-based scheme instead. #

Total comments: 6

Patch Set 11 : charlie's review #

Total comments: 2

Patch Set 12 : variable rename #

Patch Set 13 : style nit #

Patch Set 14 : move URL helpers to signin_manager instead of sync_promo #

Patch Set 15 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+310 lines, -7 lines) Patch
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 8 chunks +42 lines, -0 lines 0 comments Download
A chrome/browser/signin/signin_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +61 lines, -1 line 0 comments Download
M chrome/browser/signin/signin_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +35 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/test/base/chrome_render_view_host_test_harness.cc View 1 2 3 2 chunks +13 lines, -2 lines 0 comments Download

Messages

Total messages: 39 (0 generated)
Roger Tawa OOO till Jul 10th
Looks good Tim. A couple of questions below. I'll patch this in myself and do ...
7 years, 9 months ago (2013-02-28 04:07:42 UTC) #1
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/12374007/diff/1/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc File chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc (right): https://codereview.chromium.org/12374007/diff/1/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc#newcode262 chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc:262: bool IsWebBasedSigninFlowURL(const GURL& url) { Missing SyncPromoUI::, get unresolved ...
7 years, 9 months ago (2013-02-28 15:04:52 UTC) #2
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/12374007/diff/1/chrome/browser/signin/signin_manager.cc File chrome/browser/signin/signin_manager.cc (right): https://codereview.chromium.org/12374007/diff/1/chrome/browser/signin/signin_manager.cc#newcode913 chrome/browser/signin/signin_manager.cc:913: } missing break; statement
7 years, 9 months ago (2013-02-28 15:17:34 UTC) #3
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/12374007/diff/1/chrome/browser/signin/signin_manager.cc File chrome/browser/signin/signin_manager.cc (right): https://codereview.chromium.org/12374007/diff/1/chrome/browser/signin/signin_manager.cc#newcode211 chrome/browser/signin/signin_manager.cc:211: CHECK_EQ(signin_process_id_, kInvalidProcessId); Hit this DCHECK while trying to repro ...
7 years, 9 months ago (2013-02-28 16:57:33 UTC) #4
Charlie Reis
Just a quick comment. I'll take a closer look later today. https://codereview.chromium.org/12374007/diff/1/chrome/browser/signin/signin_manager.cc File chrome/browser/signin/signin_manager.cc (right): ...
7 years, 9 months ago (2013-02-28 17:33:02 UTC) #5
tim (not reviewing)
Thanks for the comments guys -- I hadn't totally polished this up for review yet ...
7 years, 9 months ago (2013-02-28 17:35:52 UTC) #6
Roger Tawa OOO till Jul 10th
https://codereview.chromium.org/12374007/diff/1/chrome/browser/ui/sync/one_click_signin_helper.cc File chrome/browser/ui/sync/one_click_signin_helper.cc (right): https://codereview.chromium.org/12374007/diff/1/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode556 chrome/browser/ui/sync/one_click_signin_helper.cc:556: return false; This check should only be done if ...
7 years, 9 months ago (2013-02-28 18:23:17 UTC) #7
tim (not reviewing)
On 2013/02/28 18:23:17, Roger Tawa wrote: > https://codereview.chromium.org/12374007/diff/1/chrome/browser/ui/sync/one_click_signin_helper.cc > File chrome/browser/ui/sync/one_click_signin_helper.cc (right): > > https://codereview.chromium.org/12374007/diff/1/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode556 ...
7 years, 9 months ago (2013-02-28 18:45:29 UTC) #8
Charlie Reis
Cool. This seems like it's on the right track. The main remaining question I have ...
7 years, 9 months ago (2013-02-28 19:19:46 UTC) #9
Roger Tawa OOO till Jul 10th
lgtm I tried all the sign in cases (NTP, wrench, settings, one-click with gmail) and ...
7 years, 9 months ago (2013-02-28 21:13:05 UTC) #10
tim (not reviewing)
Updated to address comments and fork renderers. Note crbug.com/101395 affects us here as the signin ...
7 years, 9 months ago (2013-03-01 01:53:57 UTC) #11
Charlie Reis
Getting close. I have a few other questions I'll run past you offline as well. ...
7 years, 9 months ago (2013-03-04 19:22:24 UTC) #12
tim (not reviewing)
Comments addressed, PTAL. https://codereview.chromium.org/12374007/diff/11021/chrome/browser/signin/signin_browsertest.cc File chrome/browser/signin/signin_browsertest.cc (right): https://codereview.chromium.org/12374007/diff/11021/chrome/browser/signin/signin_browsertest.cc#newcode72 chrome/browser/signin/signin_browsertest.cc:72: GURL(), SyncPromoUI::SOURCE_NTP_LINK, true)); On 2013/03/04 19:22:24, ...
7 years, 9 months ago (2013-03-04 23:40:18 UTC) #13
Charlie Reis
LGTM with nit. You may need to resolve a merge conflict in chrome_content_client.cc with https://chromiumcodereview.appspot.com/11896113/, ...
7 years, 9 months ago (2013-03-05 00:28:47 UTC) #14
Charlie Reis
[+cevans in CC as FYI] Chris, just wanted to give you a heads up that ...
7 years, 9 months ago (2013-03-05 00:29:58 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12374007/14029
7 years, 9 months ago (2013-03-05 00:44:58 UTC) #16
commit-bot: I haz the power
Presubmit check for 12374007-14029 failed and returned exit status 1. INFO:root:Found 17 file(s). Running presubmit ...
7 years, 9 months ago (2013-03-05 00:45:09 UTC) #17
tim (not reviewing)
Guess I misinterpreted the OWNERS file layout :( +jam for OWNERS approval of chrome/content, chrome/renderer, ...
7 years, 9 months ago (2013-03-05 00:49:42 UTC) #18
darin (slow to review)
Do you mean for chrome-signin: URLs to be linkable from the web? https://codereview.chromium.org/12374007/diff/14029/chrome/renderer/chrome_content_renderer_client.cc File chrome/renderer/chrome_content_renderer_client.cc ...
7 years, 9 months ago (2013-03-05 07:29:56 UTC) #19
tim (not reviewing)
Re: the comment about chrome-signin URLs being linkable from the web: that is not my ...
7 years, 9 months ago (2013-03-05 09:45:25 UTC) #20
darin (slow to review)
On Tue, Mar 5, 2013 at 1:45 AM, <tim@chromium.org> wrote: > Re: the comment about ...
7 years, 9 months ago (2013-03-05 17:16:10 UTC) #21
tim (not reviewing)
Thanks Darin. I took another whack at the comment in ChromeContentRendererClient. I'll look into WebSecurityPolicy ...
7 years, 9 months ago (2013-03-05 17:39:20 UTC) #22
darin (slow to review)
Also, have you explored solving this problem without introducing a new URL scheme? That seems ...
7 years, 9 months ago (2013-03-05 18:41:05 UTC) #23
Charlie Reis
I agree that it would be good to do this without a new scheme if ...
7 years, 9 months ago (2013-03-05 19:22:01 UTC) #24
darin (slow to review)
That's an interesting idea. If I'm not mistaken, aren't chrome-extension:// URLs linkable? It seems like ...
7 years, 9 months ago (2013-03-05 20:28:30 UTC) #25
tim (not reviewing)
I'm not sure about the link-ability of chrome-extension urls... any ideas on who I could ...
7 years, 9 months ago (2013-03-05 21:00:54 UTC) #26
tim (not reviewing)
[+cc abarth again]
7 years, 9 months ago (2013-03-05 21:03:12 UTC) #27
Charlie Reis
On 2013/03/05 21:00:54, timsteele wrote: > I'm not sure about the link-ability of chrome-extension urls... ...
7 years, 9 months ago (2013-03-05 21:07:38 UTC) #28
darin (slow to review)
I'm OK with that if you think it is safe. I was just wondering if ...
7 years, 9 months ago (2013-03-05 21:12:38 UTC) #29
Charlie Reis
On 2013/03/05 21:12:38, darin wrote: > I'm OK with that if you think it is ...
7 years, 9 months ago (2013-03-05 21:40:08 UTC) #30
tim (not reviewing)
On 2013/03/05 21:40:08, creis wrote: > On 2013/03/05 21:12:38, darin wrote: > > I'm OK ...
7 years, 9 months ago (2013-03-05 23:04:04 UTC) #31
Charlie Reis
https://codereview.chromium.org/12374007/diff/32001/chrome/browser/signin/signin_browsertest.cc File chrome/browser/signin/signin_browsertest.cc (right): https://codereview.chromium.org/12374007/diff/32001/chrome/browser/signin/signin_browsertest.cc#newcode76 chrome/browser/signin/signin_browsertest.cc:76: // and normal renderers are suitable hosts. How did ...
7 years, 9 months ago (2013-03-06 00:14:53 UTC) #32
tim (not reviewing)
https://codereview.chromium.org/12374007/diff/32001/chrome/browser/signin/signin_browsertest.cc File chrome/browser/signin/signin_browsertest.cc (right): https://codereview.chromium.org/12374007/diff/32001/chrome/browser/signin/signin_browsertest.cc#newcode76 chrome/browser/signin/signin_browsertest.cc:76: // and normal renderers are suitable hosts. On 2013/03/06 ...
7 years, 9 months ago (2013-03-06 01:04:07 UTC) #33
Charlie Reis
LGTM with nit. Darin? https://codereview.chromium.org/12374007/diff/50001/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc File chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc (right): https://codereview.chromium.org/12374007/diff/50001/chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc#newcode102 chrome/browser/ui/webui/sync_promo/sync_promo_ui.cc:102: "chrome-extension://acfccoigjajmmgbhpfbjnpckhjjegnih"; Separate from this CL, ...
7 years, 9 months ago (2013-03-06 01:28:46 UTC) #34
tim (not reviewing)
Renamed variable to kChromeSigninEffectiveSite. I chatted with mpcomplete@ earlier who told me they rely on ...
7 years, 9 months ago (2013-03-06 01:47:26 UTC) #35
tim (not reviewing)
On 2013/03/06 01:47:26, timsteele wrote: > Renamed variable to kChromeSigninEffectiveSite. > > I chatted with ...
7 years, 9 months ago (2013-03-06 18:41:51 UTC) #36
darin (slow to review)
LGTM
7 years, 9 months ago (2013-03-06 22:08:53 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tim@chromium.org/12374007/55008
7 years, 9 months ago (2013-03-06 22:25:51 UTC) #38
tim (not reviewing)
7 years, 9 months ago (2013-03-07 00:25:41 UTC) #39
Message was sent while issue was closed.
Committed patchset #15 manually as r186550 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698