Index: components/policy/core/common/remote_commands/remote_commands_service.cc |
diff --git a/components/policy/core/common/remote_commands/remote_commands_service.cc b/components/policy/core/common/remote_commands/remote_commands_service.cc |
index 738c1b85adf6e60558ac611cf7594f22b0d23327..414d3896613130559afb6738308f94b92263b45e 100644 |
--- a/components/policy/core/common/remote_commands/remote_commands_service.cc |
+++ b/components/policy/core/common/remote_commands/remote_commands_service.cc |
@@ -32,10 +32,14 @@ RemoteCommandsService::~RemoteCommandsService() { |
} |
bool RemoteCommandsService::FetchRemoteCommands() { |
- if (!client_->is_registered()) |
+ CHROMEOS_SYSLOG(WARNING) << "Fetching remote commands."; |
+ if (!client_->is_registered()) { |
+ CHROMEOS_SYSLOG(WARNING) << "Client is not registered."; |
return false; |
+ } |
if (command_fetch_in_progress_) { |
+ CHROMEOS_SYSLOG(WARNING) << "Command fetch is already in progress."; |
has_enqueued_fetch_request_ = true; |
return false; |
} |
@@ -151,6 +155,7 @@ void RemoteCommandsService::OnRemoteCommandsFetched( |
DeviceManagementStatus status, |
const std::vector<enterprise_management::RemoteCommand>& commands) { |
DCHECK(command_fetch_in_progress_); |
+ CHROMEOS_SYSLOG(WARNING) << "Remote commands fetched."; |
command_fetch_in_progress_ = false; |
// TODO(binjin): Add retrying on errors. See http://crbug.com/466572. |