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

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: WIP Created 5 years, 10 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 803fbca47b573722b6990186d515b8768afe1d5a..8bc37fb61a99fe047c7b5bd543fa00302f24ead9 100644
--- a/components/policy/core/common/remote_commands/remote_commands_queue.cc
+++ b/components/policy/core/common/remote_commands/remote_commands_queue.cc
@@ -27,7 +27,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