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

Issue 11938007: Don't use request user data during one-click sign in (Closed)

Created:
7 years, 11 months ago by Roger Tawa OOO till Jul 10th
Modified:
7 years, 11 months ago
CC:
chromium-reviews, Raghu Simha, haitaol1, tim (not reviewing), akalin, sail+watch_chromium.org
Visibility:
Public.

Description

When the user says "don't show me again", make sure to respect it. In some cases, its not possible to maintain context information from http requests using URLRequest user data. Redirects during the sign in process may use 200 OK responses with html that causes an auto refresh. Use the io profile data instead to hold the state. BUG=169874 TEST=See bug description for repro steps Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178947

Patch Set 1 #

Total comments: 4

Patch Set 2 : rebased #

Patch Set 3 : Address review comments #

Total comments: 2

Patch Set 4 : Address review comments #

Patch Set 5 : rebased #

Total comments: 7

Patch Set 6 : rebased #

Patch Set 7 : rebased #

Patch Set 8 : rebased #

Patch Set 9 : rebased #

Patch Set 10 : rebased #

Patch Set 11 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -86 lines) Patch
M chrome/browser/profiles/profile_io_data.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper.h View 1 2 2 chunks +1 line, -4 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 10 chunks +35 lines, -76 lines 0 comments Download
M chrome/browser/ui/sync/one_click_signin_helper_unittest.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
erikwright (departed)
https://codereview.chromium.org/11938007/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/11938007/diff/1/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode681 chrome/browser/ui/sync/one_click_signin_helper.cc:681: Profile::FromBrowserContext(web_contents->GetBrowserContext()); This is a bit of an abuse (perhaps ...
7 years, 11 months ago (2013-01-18 03:06:54 UTC) #1
Roger Tawa OOO till Jul 10th
Thanks Erik. See question below. https://codereview.chromium.org/11938007/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/11938007/diff/1/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode681 chrome/browser/ui/sync/one_click_signin_helper.cc:681: Profile::FromBrowserContext(web_contents->GetBrowserContext()); On 2013/01/18 03:06:54, ...
7 years, 11 months ago (2013-01-18 15:21:51 UTC) #2
erikwright (departed)
https://codereview.chromium.org/11938007/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/11938007/diff/1/chrome/browser/ui/sync/one_click_signin_helper.cc#newcode681 chrome/browser/ui/sync/one_click_signin_helper.cc:681: Profile::FromBrowserContext(web_contents->GetBrowserContext()); On 2013/01/18 15:21:51, Roger Tawa wrote: > On ...
7 years, 11 months ago (2013-01-18 15:36:28 UTC) #3
Roger Tawa OOO till Jul 10th
Hi Erik, please take a look. Is there a chance that the resource context could ...
7 years, 11 months ago (2013-01-18 18:57:43 UTC) #4
erikwright (departed)
On 2013/01/18 18:57:43, Roger Tawa wrote: > Hi Erik, please take a look. Is there ...
7 years, 11 months ago (2013-01-18 19:06:59 UTC) #5
Roger Tawa OOO till Jul 10th
Hi Matt, Scott, Can you please review? Matt: can you look at the profile io ...
7 years, 11 months ago (2013-01-18 22:17:30 UTC) #6
mmenke
"nit" should be "not" in your description. I'm not an owner of chrome_resource_dispatcher_host_delegate.cc, but the ...
7 years, 11 months ago (2013-01-18 22:35:29 UTC) #7
sky
I'm a bit confused as to which files you need to review. Not the sync ...
7 years, 11 months ago (2013-01-18 23:11:43 UTC) #8
Roger Tawa OOO till Jul 10th
Thanks Matt. Scott: You're right, I think I only need an owner for chrome_resource_dispatcher_host_delegate.cc, but ...
7 years, 11 months ago (2013-01-21 15:26:45 UTC) #9
Roger Tawa OOO till Jul 10th
Hi Tim, Can you please take a look? Thanks.
7 years, 11 months ago (2013-01-21 15:28:28 UTC) #10
sky
LGTM
7 years, 11 months ago (2013-01-22 16:25:41 UTC) #11
tim (not reviewing)
A few style nits, then LGTM. https://codereview.chromium.org/11938007/diff/21002/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://codereview.chromium.org/11938007/diff/21002/chrome/browser/profiles/profile_io_data.h#newcode435 chrome/browser/profiles/profile_io_data.h:435: // During the ...
7 years, 11 months ago (2013-01-23 02:07:52 UTC) #12
Roger Tawa OOO till Jul 10th
Thanks Tim. Changes uploaded. https://codereview.chromium.org/11938007/diff/21002/chrome/browser/profiles/profile_io_data.h File chrome/browser/profiles/profile_io_data.h (right): https://codereview.chromium.org/11938007/diff/21002/chrome/browser/profiles/profile_io_data.h#newcode435 chrome/browser/profiles/profile_io_data.h:435: // During the reverse autologin ...
7 years, 11 months ago (2013-01-25 20:14:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rogerta@chromium.org/11938007/25003
7 years, 11 months ago (2013-01-25 20:18:19 UTC) #14
commit-bot: I haz the power
7 years, 11 months ago (2013-01-26 00:07:08 UTC) #15
Message was sent while issue was closed.
Change committed as 178947

Powered by Google App Engine
This is Rietveld 408576698