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

Issue 1075273002: Handle ListAccount fetches from within the GaiaCookieManagerService. (Closed)

Created:
5 years, 8 months ago by Mike Lerman
Modified:
5 years, 8 months ago
CC:
chromium-reviews, rginda+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle ListAccount fetches and watching the GAIA cookies from within the GaiaCookieManagerService. This CL only implements non-ChromeOS features; AboutSigninInterals and the AccountReconcilor. ChromeOS features will come later, as they require more support. This CL also removes the ReconcilorSource as a parameter to ListAccounts. Changes the observed cookie from the LSID cookie to the APISID cookie at nickk@'s suggestion. Design doc: https://docs.google.com/document/d/1FfmSS7M87L_2tkVuHO3NuruborFm6qHXe2VdktZg-HQ/ BUG=466799, 463611, 471210 Committed: https://crrev.com/2933d01b2d36bf278a7bf1cb9996dfbeea0d0ef0 Cr-Commit-Position: refs/heads/master@{#326846}

Patch Set 1 #

Patch Set 2 : GCMS correctly monitors APISID cookie. #

Patch Set 3 : Account Reconcilor now uses the GCMS. #

Patch Set 4 : ListAccounts retries. Add unittests to GCMS. #

Patch Set 5 : Don't init the fake GCMS too early. #

Patch Set 6 : Pre-review. #

Patch Set 7 : Don't access the front() of an empty() deque. #

Patch Set 8 : Rebase #

Total comments: 22

Patch Set 9 : Notify observers when ListAccounts fails #

Patch Set 10 : Rogerta's comments: new GaiaUrl for .google.com, rework FakeGCMS to fake ListAccounts responses. #

Patch Set 11 : Rebase #

Total comments: 4

Patch Set 12 : Change switch string #

Patch Set 13 : Rebase #

Total comments: 1

Patch Set 14 : Angle brackets don't need a space #

Patch Set 15 : Fix a test post rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+539 lines, -460 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/signin/about_signin_internals_factory.cc View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/signin/account_reconcilor_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 22 chunks +56 lines, -79 lines 0 comments Download
M chrome/browser/signin/chrome_signin_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download
D chrome/browser/signin/fake_account_reconcilor.h View 1 2 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/browser/signin/fake_account_reconcilor.cc View 1 2 1 chunk +0 lines, -38 lines 0 comments Download
A chrome/browser/signin/fake_gaia_cookie_manager_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/signin/fake_gaia_cookie_manager_service.cc View 1 2 3 4 5 6 7 8 9 1 chunk +112 lines, -0 lines 0 comments Download
M chrome/browser/signin/signin_tracker_factory.cc View 1 2 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/webui/signin_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +11 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M components/signin/core/browser/about_signin_internals.h View 1 2 8 chunks +10 lines, -24 lines 0 comments Download
M components/signin/core/browser/about_signin_internals.cc View 1 2 5 chunks +12 lines, -53 lines 0 comments Download
M components/signin/core/browser/account_reconcilor.h View 1 2 10 chunks +4 lines, -35 lines 0 comments Download
M components/signin/core/browser/account_reconcilor.cc View 1 2 3 4 5 6 7 8 9 10 chunks +14 lines, -114 lines 0 comments Download
M components/signin/core/browser/gaia_cookie_manager_service.h View 1 2 3 4 5 6 7 8 9 10 chunks +44 lines, -18 lines 0 comments Download
M components/signin/core/browser/gaia_cookie_manager_service.cc View 1 2 3 4 5 6 7 8 9 13 chunks +146 lines, -35 lines 0 comments Download
M components/signin/core/browser/gaia_cookie_manager_service_unittest.cc View 1 2 3 8 chunks +52 lines, -6 lines 0 comments Download
M components/signin/core/browser/signin_tracker.h View 1 2 3 chunks +0 lines, -3 lines 0 comments Download
M components/signin/core/browser/signin_tracker.cc View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M components/signin/ios/browser/merge_session_observer_bridge.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gaia/gaia_constants.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gaia/gaia_constants.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M google_apis/gaia/gaia_switches.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M google_apis/gaia/gaia_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M google_apis/gaia/gaia_urls.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M google_apis/gaia/gaia_urls.cc View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (7 generated)
Mike Lerman
Hi Roger, This is CL #6 in my chain :) PTAL! Thanks, Mike
5 years, 8 months ago (2015-04-13 20:50:04 UTC) #2
Roger Tawa OOO till Jul 10th
Great cleanup Mike! https://codereview.chromium.org/1075273002/diff/140001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/1075273002/diff/140001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode360 chrome/browser/signin/account_reconcilor_unittest.cc:360: // This will be the first ...
5 years, 8 months ago (2015-04-15 18:51:06 UTC) #3
Mike Lerman
Thanks for going over this, Roger. https://codereview.chromium.org/1075273002/diff/140001/chrome/browser/signin/account_reconcilor_unittest.cc File chrome/browser/signin/account_reconcilor_unittest.cc (right): https://codereview.chromium.org/1075273002/diff/140001/chrome/browser/signin/account_reconcilor_unittest.cc#newcode360 chrome/browser/signin/account_reconcilor_unittest.cc:360: // This will ...
5 years, 8 months ago (2015-04-16 13:13:46 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm Looks great Mike. Couple of nits below. https://codereview.chromium.org/1075273002/diff/200001/chrome/browser/signin/chrome_signin_client.cc File chrome/browser/signin/chrome_signin_client.cc (right): https://codereview.chromium.org/1075273002/diff/200001/chrome/browser/signin/chrome_signin_client.cc#newcode67 chrome/browser/signin/chrome_signin_client.cc:67: cookie_settings->IsSettingCookieAllowed(google_url, ...
5 years, 8 months ago (2015-04-21 13:46:36 UTC) #5
Mike Lerman
Thanks for the review, Roger. courage@ can you look at c/b/extensions/api/identity/identity_apitest.cc? estade@ can you please ...
5 years, 8 months ago (2015-04-21 15:16:16 UTC) #7
Michael Courage
c/b/extensions/api/identity/identity_apitest.cc lgtm
5 years, 8 months ago (2015-04-21 16:45:31 UTC) #8
jochen (gone - plz use gerrit)
I can't access the design doc linked in the CL, can you please make it ...
5 years, 8 months ago (2015-04-22 14:46:29 UTC) #9
Mike Lerman
World readable. Intent posted on chromium-dev: https://groups.google.com/a/chromium.org/forum/#!topic/chromium-dev/An7O13Yp2io Thanks!
5 years, 8 months ago (2015-04-22 14:59:55 UTC) #10
Evan Stade
lgtm https://codereview.chromium.org/1075273002/diff/240001/chrome/browser/ui/webui/signin_internals_ui.cc File chrome/browser/ui/webui/signin_internals_ui.cc (right): https://codereview.chromium.org/1075273002/diff/240001/chrome/browser/ui/webui/signin_internals_ui.cc#newcode76 chrome/browser/ui/webui/signin_internals_ui.cc:76: std::vector<std::pair<std::string, bool> > cookie_accounts; you don't need the ...
5 years, 8 months ago (2015-04-24 15:22:27 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1075273002/260001
5 years, 8 months ago (2015-04-24 15:27:12 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/65233)
5 years, 8 months ago (2015-04-24 15:49:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1075273002/280001
5 years, 8 months ago (2015-04-24 17:32:06 UTC) #19
commit-bot: I haz the power
Committed patchset #15 (id:280001)
5 years, 8 months ago (2015-04-24 18:34:37 UTC) #20
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 18:36:52 UTC) #21
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/2933d01b2d36bf278a7bf1cb9996dfbeea0d0ef0
Cr-Commit-Position: refs/heads/master@{#326846}

Powered by Google App Engine
This is Rietveld 408576698