TestingProfile::CreateHistoryService/DestroyHistoryService are not safe |
||||
Issue descriptionThese methods create/destroy a HistoryService without going through BrowserContextDependencyManager, i.e. they bypass the proper order of service construction/destruction. That means that any previously-created service that depends on HistoryService will be left with a dangling pointer. It's somewhat miraculous that this works at all; it's certainly very fragile. It only works due to hacks that remove certain dependency edges in tests (e.g. TopSitesFactory::ServiceIsNULLWhileTesting), and adding new edges can break totally unrelated tests (see e.g. https://codereview.chromium.org/2660333007/#ps1). Somewhat related: bug 120220
,
Feb 6 2018
--Chrome Identity automated triaging-- This bug is Available and has gone one year without any activity. If another month passes without any activity, this bug will be closed out. Please provide an update with the latest status for this bug. Please see https://goo.gl/78kbny for more details. Please remove the Services>SignIn or UI>Browser>Profiles components if this bug isn't related to Chrome Identity. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 11 2018
--Chrome Identity automated triaging-- This available, signin or profiles-related bug has gone at least 30 days since the last automated post without any further update. This bug will be closed out due to inactivity. Please re-open the bug and provide an update if it is still a valid or reproducible bug. Please see https://goo.gl/78kbny for more details. Please remove the Services>SignIn or UI>Browser>Profiles components if this bug isn't related to Chrome Identity. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Jun 11 2018
Reopening since this is still valid. Also removing PMs from CC :) |
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Feb 7 2017