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

Unified Diff: components/policy/core/common/cloud/cloud_policy_core.cc

Issue 1134133005: Fix occasional crash in remote commands code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: 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 | « no previous file | components/policy/core/common/remote_commands/remote_commands_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/cloud/cloud_policy_core.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_core.cc b/components/policy/core/common/cloud/cloud_policy_core.cc
index 302808e16d8f40562e266ef5556fdf7c9fa67cec..a2fd68e588f7e0ff9ee656b005a4988a0404338b 100644
--- a/components/policy/core/common/cloud/cloud_policy_core.cc
+++ b/components/policy/core/common/cloud/cloud_policy_core.cc
@@ -49,6 +49,7 @@ void CloudPolicyCore::Disconnect() {
FOR_EACH_OBSERVER(Observer, observers_, OnCoreDisconnecting(this));
refresh_delay_.reset();
refresh_scheduler_.reset();
+ remote_commands_service_.reset();
bartfab (slow) 2015/05/18 12:24:49 If another Connect() call is made later, will Star
binjin 2015/05/18 12:28:56 No. Unless another StartRemoteCommandsService call
bartfab (slow) 2015/05/18 12:30:45 Sure, it does not need to be automatic and tied to
binjin 2015/05/18 12:37:12 I see. I did a grep and the only place where Start
bartfab (slow) 2015/05/19 09:31:08 I checked: All the other Connect() calls deal with
service_.reset();
client_.reset();
}
« no previous file with comments | « no previous file | components/policy/core/common/remote_commands/remote_commands_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698