Adds new function MaybeShowSamlPasswordExpiryNotification(Profile*)

Functions already exist to simply show or hide the notification.
This new function checks the existing information for the given profile,
and decides whether to do nothing / hide a notification, show a
notification now, or show one at some point in the distant future.

It is possible to call this function multiple times (for instance,
every time a user logs in) without it creating multiple tasks to
show multiple notifications in the distant future. However, calling
the function again after the user has dismissed the notification will
result in it being reshown, so it shouldn't be called every minute.

So far it is not called at all - calling it (and making sure it is
not called too often) will be done in a follow up CL.

Bug: 930109
Change-Id: I859f0bfa999e2e262911c6fe3ba4c43359e24fdc
Reviewed-by: Roman Sorokin [CET] <>
Commit-Queue: A Olsen <>
Cr-Commit-Position: refs/heads/master@{#660364}
3 files changed