Revert "Only use SupervisedUserNavigationObserver for child accounts."
This reverts commit 79024af7. Reason for revert: This revert is required because there are scenarios where the profile becomes supervised user after the navigation observer is supposed to be created. i.e. When SupervisedUserNaivgationObserver::MaybeCreateForWebContents is called the user profile is not marked as supervised hence the navigation observer is not created. This resulted in the crashes reported in the bug below. Bug: 1061427 Original change's description: > Only use SupervisedUserNavigationObserver for child accounts. > > This CL makes sure that SupervisedUserNavigationObserver is > created only for supervised user accounts. This saves memory > and processing time. > > Bug: 1043232 > Change-Id: I5d13ce0261d07c29384f5ba5dc83e420ed3138dd > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2008315 > Reviewed-by: Scott Violet <sky@chromium.org> > Reviewed-by: Dan S <danan@chromium.org> > Commit-Queue: Yilkal Abe <yilkal@chromium.org> > Cr-Commit-Position: refs/heads/master@{#733750} TBR=sky@chromium.org,danan@chromium.org,yilkal@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 1043232 Change-Id: I1767afe66b32f34736af2497793d59f598cb61b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2102764Reviewed-by:Yilkal Abe <yilkal@chromium.org> Commit-Queue: Yilkal Abe <yilkal@chromium.org> Cr-Commit-Position: refs/heads/master@{#750225}
Showing
Please register or sign in to comment