Stop demo mode detection correctly.
commit8ac4d6f3f2dd65f4a06d5bcd6c4976d0bb0bb1de
authordzhioev <dzhioev@chromium.org>
Mon, 22 Dec 2014 13:43:34 +0000 (22 05:43 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Dec 2014 13:44:15 +0000 (22 13:44 +0000)
treea8a8ef0330b1bc7027c72f7811ebcff8ccdcd8c4
parent6d64e0d964b8b8d8d96146a14cec67312cc48226
Stop demo mode detection correctly.

|oobe_timer_| kept running after StopDetection() call. So in fact demo mode
detection remained active.

BUG=439956
TEST=Run 'chromeos=1' debug build with options --derelict-detection-timeout=10 --derelict-idle-timeout=10 --oobe-timer-interval=10. Enroll into enterprise domain, wait for 10 seconds at "Your device has successfully been enrolled." screen. Nothing should happen.

Review URL: https://codereview.chromium.org/821013002

Cr-Commit-Position: refs/heads/master@{#309418}
chrome/browser/ui/webui/chromeos/login/demo_mode_detector.cc