[Merge to M-81] Night Light: Fix a blue flash when switching users

Switching users can lead to a display reconfiguration.
We used reapply the current color temperature immediately
on display config changes with disregard to the possibility
of an on-going animation towards the same temperature.

As a result the target value was incorrectly set in the middle
of the animation, then the animation continues towards that
target value, resulting in a blue flash.

This CL fixes this issue.

TBR=jamescook@chromium.org
BUG=999395
TEST=Manually, switch users (one with NL on, and the other off)
and see no blue flashes.

(cherry picked from commit 6416c3bc44d34f94c483ddd17f4d685c6bd2cb66)

Change-Id: Ib41dadcd3e45defbc5b09f32d1a8c0c2aa49e5dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2051525
Reviewed-by: James Cook <jamescook@chromium.org>
Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#740748}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2052572
Reviewed-by: Ahmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/branch-heads/4044@{#239}
Cr-Branched-From: a6d9daf149a473ceea37f629c41d4527bf2055bd-refs/heads/master@{#737173}
3 files changed