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..52625b327fecf3582b2b4d0fe4ab37351a52332e 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,16 @@ RemoteCommandsService::~RemoteCommandsService() { |
} |
bool RemoteCommandsService::FetchRemoteCommands() { |
- if (!client_->is_registered()) |
+ // TODO(hunyadym): Remove after crbug.com/582506 is fixed. |
+ CHROMEOS_SYSLOG(WARNING) << "Fetching remote commands."; |
+ if (!client_->is_registered()) { |
+ CHROMEOS_SYSLOG(WARNING) << "Client is not registered."; |
return false; |
+ } |
if (command_fetch_in_progress_) { |
+ // TODO(hunyadym): Remove after crbug.com/582506 is fixed. |
+ CHROMEOS_SYSLOG(WARNING) << "Command fetch is already in progress."; |
has_enqueued_fetch_request_ = true; |
return false; |
} |
@@ -151,6 +157,8 @@ void RemoteCommandsService::OnRemoteCommandsFetched( |
DeviceManagementStatus status, |
const std::vector<enterprise_management::RemoteCommand>& commands) { |
DCHECK(command_fetch_in_progress_); |
+ // TODO(hunyadym): Remove after crbug.com/582506 is fixed. |
+ CHROMEOS_SYSLOG(WARNING) << "Remote commands fetched."; |
command_fetch_in_progress_ = false; |
// TODO(binjin): Add retrying on errors. See http://crbug.com/466572. |