Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(670)

Unified Diff: chrome/browser/chromeos/policy/heartbeat_scheduler.h

Issue 1276853003: Revert of Send GCM id to DMServer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/policy/heartbeat_scheduler.h
diff --git a/chrome/browser/chromeos/policy/heartbeat_scheduler.h b/chrome/browser/chromeos/policy/heartbeat_scheduler.h
index ab3140c612890872b28884fd7df1162ebe028345..9c268fa482f212397a3312785312d8bfe34d0cdf 100644
--- a/chrome/browser/chromeos/policy/heartbeat_scheduler.h
+++ b/chrome/browser/chromeos/policy/heartbeat_scheduler.h
@@ -16,7 +16,6 @@
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "components/gcm_driver/gcm_app_handler.h"
#include "components/gcm_driver/gcm_client.h"
-#include "components/policy/core/common/cloud/cloud_policy_client.h"
namespace base {
class SequencedTaskRunner;
@@ -38,11 +37,9 @@
// Default interval for how often we send up a heartbeat.
static const int64 kDefaultHeartbeatIntervalMs;
- // Constructor. |cloud_policy_client| will be used to send registered GCM id
- // to DM server, and can be null. |driver| can be null for tests.
+ // Constructor. |driver| can be null for tests.
HeartbeatScheduler(
gcm::GCMDriver* driver,
- policy::CloudPolicyClient* cloud_policy_client,
const std::string& enrollment_domain,
const std::string& device_id,
const scoped_refptr<base::SequencedTaskRunner>& task_runner);
@@ -89,9 +86,6 @@
// Shuts down our GCM connection (called when heartbeats are disabled).
void ShutdownGCM();
- // Callback for the GCM id update request.
- void OnGcmIdUpdateRequestSent(bool status);
-
// TaskRunner used for scheduling heartbeats.
const scoped_refptr<base::SequencedTaskRunner> task_runner_;
@@ -122,8 +116,6 @@
// Callback invoked via a delay to send a heartbeat.
base::CancelableClosure heartbeat_callback_;
- policy::CloudPolicyClient* cloud_policy_client_;
-
// The GCMDriver used to send heartbeat messages.
gcm::GCMDriver* const gcm_driver_;

Powered by Google App Engine
This is Rietveld 408576698