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

Unified Diff: components/policy/core/common/remote_commands/remote_commands_service.cc

Issue 1106193003: Allow user to manually fetch remote commands (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-0420
Patch Set: rebase; fixes 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
« no previous file with comments | « chrome/browser/ui/webui/policy_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1b3bb678470730734ba4a4019eab67229713d974..d7b53bc693ccd0781e1be23d035ede2b0f17ec5e 100644
--- a/components/policy/core/common/remote_commands/remote_commands_service.cc
+++ b/components/policy/core/common/remote_commands/remote_commands_service.cc
@@ -30,7 +30,7 @@ RemoteCommandsService::~RemoteCommandsService() {
}
bool RemoteCommandsService::FetchRemoteCommands() {
- if (!client_->is_registered())
+ if (!client_ || !client_->is_registered())
return false;
if (command_fetch_in_progress_) {
« no previous file with comments | « chrome/browser/ui/webui/policy_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698