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 d7b53bc693ccd0781e1be23d035ede2b0f17ec5e..4541f655dd2535ed2e00605a4d5cc834eb34b559 100644 |
--- a/components/policy/core/common/remote_commands/remote_commands_service.cc |
+++ b/components/policy/core/common/remote_commands/remote_commands_service.cc |
@@ -22,6 +22,7 @@ RemoteCommandsService::RemoteCommandsService( |
scoped_ptr<RemoteCommandsFactory> factory, |
CloudPolicyClient* client) |
: factory_(factory.Pass()), client_(client), weak_factory_(this) { |
+ DCHECK(client_); |
queue_.AddObserver(this); |
} |
@@ -30,7 +31,7 @@ RemoteCommandsService::~RemoteCommandsService() { |
} |
bool RemoteCommandsService::FetchRemoteCommands() { |
- if (!client_ || !client_->is_registered()) |
+ if (!client_->is_registered()) |
return false; |
if (command_fetch_in_progress_) { |