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

Issue 7121014: When a user logs into sync, the appropriate cookies are retrieved so that (Closed)

Created:
9 years, 6 months ago by Roger Tawa OOO till Jul 10th
Modified:
9 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

When a user logs into sync, the appropriate cookies are retrieved so that she is already logged into Google web services, and does not need to enter her username and password again. This feature is on by default, but can be turned off by specifying --disable-auto-login on the command line or the about:flags page. BUG=None TEST=Make sure the browser has no google or youtube cookies. Either clear all the cookies or start with a brand new profile. Go to menu item "Wrench / Options", go to the tab "Personal stuff", and click the "Enable these features..." button to enable sync. Follow the wizard to login to your google account and finish the sync process. Once terminated, browse to gmail.com and you should be already logged in.

Patch Set 1 : '' #

Patch Set 2 : '' #

Patch Set 3 : Fixing merge issue that caused previous trybots to fail #

Total comments: 2

Patch Set 4 : Merged changes in about flags #

Patch Set 5 : Fix trybot compile break on non-windows platforms #

Patch Set 6 : Merging with GAIA URL changes #

Patch Set 7 : Address review comments, merge with changes to GaiaUrls #

Patch Set 8 : Fix unit test breaks on chromeos trybots #

Total comments: 8

Patch Set 9 : Addressing code review comments #

Patch Set 10 : Uploading after sync merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -15 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/cookie_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/issue_response_handler.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/issue_response_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/sync/signin_manager.h View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/sync/signin_manager.cc View 1 2 3 4 5 6 7 8 9 3 chunks +42 lines, -0 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 2 3 4 5 6 7 8 9 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 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_consumer.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.h View 1 2 3 4 5 6 7 8 9 5 chunks +16 lines, -1 line 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher.cc View 1 2 3 4 5 6 7 8 9 6 chunks +49 lines, -0 lines 0 comments Download
M chrome/common/net/gaia/gaia_auth_fetcher_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +82 lines, -2 lines 0 comments Download
M chrome/common/net/gaia/gaia_urls.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Roger Tawa OOO till Jul 10th
9 years, 6 months ago (2011-06-08 19:49:57 UTC) #1
tim (not reviewing)
On 2011/06/08 19:49:57, Roger Tawa wrote: If the user signs out of (e.g.) gmail, possibly ...
9 years, 6 months ago (2011-06-08 21:01:53 UTC) #2
Roger Tawa OOO till Jul 10th
Thanks for the feedback Tim. Please take another look, I've made the changes we discussed ...
9 years, 6 months ago (2011-06-10 13:34:02 UTC) #3
tim (not reviewing)
sorry for late reply on this! one comment, i'll take a look after but looks ...
9 years, 6 months ago (2011-06-14 13:18:29 UTC) #4
Roger Tawa OOO till Jul 10th
Hi Tim, Maybe I don't quite understand what you mean, please see below. Thanks. http://codereview.chromium.org/7121014/diff/10004/chrome/browser/sync/signin_manager.h ...
9 years, 6 months ago (2011-06-14 18:42:43 UTC) #5
tim (not reviewing)
It's just pretty cumbersome to have inheritance controlled by #ifdef IMO. And this isn't a ...
9 years, 6 months ago (2011-06-15 16:12:13 UTC) #6
sky
Yes, we generally try to avoid ifdef'tastic code like this. Two suggestions: . Add a ...
9 years, 6 months ago (2011-06-15 16:44:08 UTC) #7
(NOT FOR CODE REVIEWS)
Thanks for the suggestions Tim, Scott. I'll get around to it later this week. Roger ...
9 years, 6 months ago (2011-06-15 16:56:12 UTC) #8
Roger Tawa OOO till Jul 10th
Hi guys, Changed code as suggested in Scott's, and made a change to GaiaUrls (and ...
9 years, 6 months ago (2011-06-21 01:03:42 UTC) #9
Chris Masone
http://codereview.chromium.org/7121014/diff/33005/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc File chrome/browser/chromeos/login/cookie_fetcher_unittest.cc (right): http://codereview.chromium.org/7121014/diff/33005/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc#newcode188 chrome/browser/chromeos/login/cookie_fetcher_unittest.cc:188: scoped_ptr<URLFetcher> fetcher(handler.Handle(std::string("a"), NULL)); so, the trailing newline is fatal? ...
9 years, 6 months ago (2011-06-21 01:26:31 UTC) #10
sky
This approach looks much better. I'm assuming Tim and Chris are doing the actual reviewing. ...
9 years, 6 months ago (2011-06-21 02:46:42 UTC) #11
Roger Tawa OOO till Jul 10th
Thanks guys. Changes uploaded. http://codereview.chromium.org/7121014/diff/33005/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc File chrome/browser/chromeos/login/cookie_fetcher_unittest.cc (right): http://codereview.chromium.org/7121014/diff/33005/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc#newcode188 chrome/browser/chromeos/login/cookie_fetcher_unittest.cc:188: scoped_ptr<URLFetcher> fetcher(handler.Handle(std::string("a"), NULL)); On 2011/06/21 ...
9 years, 6 months ago (2011-06-21 03:21:13 UTC) #12
Chris Masone
On 2011/06/21 03:21:13, Roger Tawa wrote: > Thanks guys. Changes uploaded. > > http://codereview.chromium.org/7121014/diff/33005/chrome/browser/chromeos/login/cookie_fetcher_unittest.cc > ...
9 years, 6 months ago (2011-06-21 03:39:18 UTC) #13
tim (not reviewing)
LGTM
9 years, 6 months ago (2011-06-21 15:21:39 UTC) #14
(NOT FOR CODE REVIEWS)
Thanks Tim. Roger - On Tue, Jun 21, 2011 at 11:21, <tim@chromium.org> wrote: > LGTM ...
9 years, 6 months ago (2011-06-21 15:33:18 UTC) #15
commit-bot: I haz the power
9 years, 6 months ago (2011-06-21 16:39:25 UTC) #16
Change committed as 89842

Powered by Google App Engine
This is Rietveld 408576698