Move observing logic to Init/Shutdown in ChildAccountService
ChildAccountService listens to GaiaCookieManagerService for notifications about signed in/out accounts. The code was starting to observe in the constructor and stopping in the destructor. That is not totally correct as services should start observing in Init() and stop on Shutdown(). Moved the AddObserver/RemoveObserver calls to their proper locations. Bug: 921007 Change-Id: I6a0afef6845ab59c2f7bf4994cb8a9c90b8ef034 Reviewed-on: https://chromium-review.googlesource.com/c/1454500Reviewed-by:Marc Treib <treib@chromium.org> Reviewed-by:
Colin Blundell <blundell@chromium.org> Commit-Queue: Sergio Villar <svillar@igalia.com> Cr-Commit-Position: refs/heads/master@{#629596}
Showing
Please register or sign in to comment