DescriptionUse TestingProfile::Builder::AddTestingFactory at ChromeRenderViewHostTestHarness
This test harness is overriding the SigninManagerFactory for its TestingProfiles too late, after the Profile has already been created. Any services that depend on the SigninManager and get created with the Profile are thus left with a dead pointer (e.g. UserPolicySigninService).
This change sets the fake factory before the TestingProfile gets created. It also makes ChromeRenderViewHostTestHarness more consistent by using the fake factory for every TestingProfile created, not just the first one.
BUG=345617
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=256379
Patch Set 1 #Patch Set 2 : . #
Total comments: 7
Patch Set 3 : use TestingProfile::Builder::AddTestingFactory #
Messages
Total messages: 11 (0 generated)
|