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

Unified Diff: components/policy/core/common/cloud/cloud_policy_core.cc

Issue 1094493003: Initial RemoteCommandsInvalidator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: fixes addressing #7 and #8 Created 5 years, 7 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: components/policy/core/common/cloud/cloud_policy_core.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_core.cc b/components/policy/core/common/cloud/cloud_policy_core.cc
index f1f5fca52b309b57b8a822745aa9116433baa6af..302808e16d8f40562e266ef5556fdf7c9fa67cec 100644
--- a/components/policy/core/common/cloud/cloud_policy_core.cc
+++ b/components/policy/core/common/cloud/cloud_policy_core.cc
@@ -19,6 +19,10 @@ namespace policy {
CloudPolicyCore::Observer::~Observer() {}
+void CloudPolicyCore::Observer::OnRemoteCommandsServiceStarted(
+ CloudPolicyCore* core) {
+}
+
CloudPolicyCore::CloudPolicyCore(
const std::string& policy_type,
const std::string& settings_entity_id,
@@ -59,6 +63,8 @@ void CloudPolicyCore::StartRemoteCommandsService(
// Do an initial remote commands fetch immediately.
remote_commands_service_->FetchRemoteCommands();
+
+ FOR_EACH_OBSERVER(Observer, observers_, OnRemoteCommandsServiceStarted(this));
}
void CloudPolicyCore::RefreshSoon() {

Powered by Google App Engine
This is Rietveld 408576698