Reporting of policy errors via host-offline-reason: part 1
commit142f8e1d3e4b75c901f33cb771cd848019630c1e
authorlukasza <lukasza@chromium.org>
Thu, 20 Nov 2014 20:09:01 +0000 (20 12:09 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 20 Nov 2014 20:09:21 +0000 (20 20:09 +0000)
tree180103d6a8cee8fd3f33df71c131133455835817
parenta55f7179676dd51eddc0133770e9041e545875a3
Reporting of policy errors via host-offline-reason: part 1

PolicyWatcher.OnPolicyError callback and implementation.
- This new callback enables HostProcess to react to policy errors by
  calling ShutdownHost.
- PolicyWatcher on Linux calls this callback when detecting malformed
  policy files (with retries mechanism to avoid firing this for
  transient file reading problems)

BUG=427512 410050

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

Cr-Commit-Position: refs/heads/master@{#305069}
remoting/host/it2me/it2me_host.cc
remoting/host/it2me/it2me_host.h
remoting/host/policy_hack/fake_policy_watcher.cc
remoting/host/policy_hack/fake_policy_watcher.h
remoting/host/policy_hack/mock_policy_callback.cc
remoting/host/policy_hack/mock_policy_callback.h
remoting/host/policy_hack/policy_watcher.cc
remoting/host/policy_hack/policy_watcher.h
remoting/host/policy_hack/policy_watcher_linux.cc
remoting/host/policy_hack/policy_watcher_unittest.cc
remoting/host/remoting_me2me_host.cc