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

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

Issue 879233003: Initial RemoteCommandService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-commands
Patch Set: rebase, fixes addressing #31 Created 5 years, 9 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/remote_commands/remote_commands_queue.cc
diff --git a/components/policy/core/common/remote_commands/remote_commands_queue.cc b/components/policy/core/common/remote_commands/remote_commands_queue.cc
index 6234c9261843e766889a9e0e57f8572dfe93a26f..8c0f2b76edb7e778275029a1ff3a62bd9ee631e3 100644
--- a/components/policy/core/common/remote_commands/remote_commands_queue.cc
+++ b/components/policy/core/common/remote_commands/remote_commands_queue.cc
@@ -20,7 +20,8 @@ RemoteCommandsQueue::RemoteCommandsQueue() : clock_(new base::DefaultClock()) {
RemoteCommandsQueue::~RemoteCommandsQueue() {
while (!incoming_commands_.empty())
incoming_commands_.pop();
- running_command_.reset();
+ if (running_command_)
+ running_command_->Terminate();
}
void RemoteCommandsQueue::AddObserver(Observer* observer) {

Powered by Google App Engine
This is Rietveld 408576698