New issue
Advanced search Search tips

Issue 893133 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Jan 10
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug

Blocked on:
issue 893141
issue 901859
issue 903718

Blocking:
issue 883318
issue 883330



Sign in to add a comment

Convert SigninTracker to observing IdentityManager

Project Member Reported by blundell@chromium.org, Oct 8

Issue description

Rather than observing ProfileOAuth2TokenService and SigninManager, SigninTracker should instead observe IdentityManager. This *should* be a drop-in replacement.


 
Blockedon: 893141
By the way, anyone can start on the changes to the production code right away, but avoid trying to change signin_tracker_unittest.cc until I've fixed  crbug.com/893141  (which should happen very quickly).
Owner: clamy@chromium.org
Status: Assigned (was: Available)
Camille, this is a nice conversion starter bug. The migration doc for doing the conversions is here: https://docs.google.com/document/d/14f3qqkDM9IE4Ff_l6wuXvCMeHfSC9TxKezXTCyeaPUY/edit#.

It has info on porting the observers as well as porting the unittest to use IdentityTestEnvironment.
 Issue 797954  has been merged into this issue.
Status: Started (was: Assigned)
Camille has started this in https://chromium-review.googlesource.com/c/chromium/src/+/1291313.
Blockedon: 901859
I just realized that since SigninTracker is inside //components/signin/core/browser, landing the conversion is blocked on  https://crbug.com/901859 . I'm actively working on that split and hope to unblock this by EOW. In the meantime, we can still push forward on the CL, especially because the precursor parts (either removing the dependency on GaiaCookieManagerService or bringing up the needed APIS in IdentityManager) are not blocked on  https://crbug.com/901859  in any way.
Blockedon: 903718
The complete conversion is blocked on developing an API to replace usage of GaiaCookieManagerService::Observer. Camille: in the meantime you can push forward the CL that you have; if you rebase you'll bring in my fixes for  crbug.com/901859 .
Cc: clamy@chromium.org
Owner: ----
Status: Available (was: Started)
Spoke with Camille offline and we're going to free this up for a vendor to take. Please feel free (and I recommend!) to use Camille's in-progress CL as a building block: https://chromium-review.googlesource.com/c/chromium/src/+/1291313.
Owner: toniki...@chromium.org
Status: Started (was: Available)
Project Member

Comment 10 by bugdroid1@chromium.org, Jan 10

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/02b7b229108e172bad94a560ed6393e107afc7af

commit 02b7b229108e172bad94a560ed6393e107afc7af
Author: Antonio Gomes <tonikitoo@igalia.com>
Date: Thu Jan 10 12:12:07 2019

[s13n] Convert SigninTracker to observing IdentityManager

IdentityManager is implemented on top of SigninManager, PO2TS,
GaiaCookieServiceManager, etc, in the servicified world.

This CL convers SigninTracker away from the aforementioned classes
to use the IdentityManager API.

BUG= 893133 

Change-Id: Ia1f02a35a3a740b479cabba89ade0ff0ff0e85a5
Reviewed-on: https://chromium-review.googlesource.com/c/1403159
Reviewed-by: Mihai Sardarescu <msarda@chromium.org>
Commit-Queue: Antonio Gomes <tonikitoo@igalia.com>
Cr-Commit-Position: refs/heads/master@{#621551}
[modify] https://crrev.com/02b7b229108e172bad94a560ed6393e107afc7af/chrome/browser/signin/signin_tracker_factory.cc
[modify] https://crrev.com/02b7b229108e172bad94a560ed6393e107afc7af/components/signin/core/browser/signin_tracker.cc
[modify] https://crrev.com/02b7b229108e172bad94a560ed6393e107afc7af/components/signin/core/browser/signin_tracker.h
[modify] https://crrev.com/02b7b229108e172bad94a560ed6393e107afc7af/components/signin/core/browser/signin_tracker_unittest.cc

Status: Fixed (was: Started)

Sign in to add a comment