Added support for monitoring heartbeats over the GCM channel.
Wired up the HeartbeatEnabled and HeartbeatFrequency policies.
Added new HeartbeatScheduler class that registers with the GCMDriver() and sends
heartbeats over the GCM channel to the management server.
BUG=430908
Review URL: https://codereview.chromium.org/941713003
Cr-Commit-Position: refs/heads/master@{#318471}
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 9fd1a60..2f86717 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -291,7 +291,9 @@
#if defined(ENABLE_CONFIGURATION_POLICY)
// The policy providers managed by |browser_policy_connector_| need to shut
- // down while the IO and FILE threads are still alive.
+ // down while the IO and FILE threads are still alive. The monitoring
+ // framework owned by |browser_policy_connector_| relies on |gcm_driver_|, so
+ // this must be shutdown before |gcm_driver_| below.
if (browser_policy_connector_)
browser_policy_connector_->Shutdown();
#endif