StatusUploader now tracks if we've captured media in this session.
commitecda113a811f188b1bb4174fa0ab8d2b240c3147
authoratwilson <atwilson@chromium.org>
Tue, 26 May 2015 16:43:25 +0000 (26 09:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 26 May 2015 16:44:03 +0000 (26 16:44 +0000)
tree0f7a48d9ad7d7f7e3fae3263044ac128421b95bf
parent690ebf956d88e0e1ffb53a7f3e598e446651f190
StatusUploader now tracks if we've captured media in this session.

Updated StatusUploader::IsSessionDataUploadAllowed() to return false if any
audio/video capture has occurred during this session.

Also added unit tests to test behavior in the presence of user input (mouse
presses).

BUG=487261

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

Cr-Commit-Position: refs/heads/master@{#331375}
chrome/browser/chromeos/policy/status_uploader.cc
chrome/browser/chromeos/policy/status_uploader.h
chrome/browser/chromeos/policy/status_uploader_unittest.cc