Add PostMessage bridge method: getTimeDeltaSinceSigninSeconds()
This method will be called by the EDU Coexistence guest flow to help determine whether or not it should prompt the child's parent for permission before allowing them to add a secondary EDU account. The time delta itself is derived from the kOobeOnboardingTime user pref and the current time. Also added a test suite for EduCoexistenceController to test this functionality that can be extended to support more tests for EduCoexistenceController. Lastly, added several standard JS primitive return types to the closure signature for PostMessageAPI method implementations, which is needed to make this CL pass closure compile type checks. Bug: 1160024 Change-Id: Ie05f4bccc2db0e3127472937eed51551e864e575 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2596255Reviewed-by:Michael Giuffrida <michaelpg@chromium.org> Reviewed-by:
Aga Wronska <agawronska@chromium.org> Commit-Queue: Dan S <danan@chromium.org> Cr-Commit-Position: refs/heads/master@{#839136}
Showing
Please register or sign in to comment