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

Issue 1134133005: Fix occasional crash in remote commands code (Closed)

Created:
5 years, 7 months ago by binjin
Modified:
5 years, 7 months ago
Reviewers:
bartfab (slow)
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkcr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix occasional crash in remote commands code The RemoteCommandsService depends on a reference to CloudPolicyClient, but it doesn't get deleted before CloudPolicyClient is gone. This leads to dangling pointer and will probably crash the browser. This CL also remove code attempts to workaround this issue in crrev.com/330082 BUG=480982 Committed: https://crrev.com/939825aae3cf24f32074f084d90647cb9bb90733 Cr-Commit-Position: refs/heads/master@{#330497}

Patch Set 1 #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M components/policy/core/common/cloud/cloud_policy_core.cc View 1 chunk +1 line, -0 lines 5 comments Download
M components/policy/core/common/remote_commands/remote_commands_service.cc View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 11 (2 generated)
binjin
Bartosz, PTAL. I think we need to merge this back into 44, the previous workaround ...
5 years, 7 months ago (2015-05-18 12:21:47 UTC) #2
bartfab (slow)
https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc File components/policy/core/common/cloud/cloud_policy_core.cc (right): https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc#newcode52 components/policy/core/common/cloud/cloud_policy_core.cc:52: remote_commands_service_.reset(); If another Connect() call is made later, will ...
5 years, 7 months ago (2015-05-18 12:24:49 UTC) #3
binjin
https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc File components/policy/core/common/cloud/cloud_policy_core.cc (right): https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc#newcode52 components/policy/core/common/cloud/cloud_policy_core.cc:52: remote_commands_service_.reset(); On 2015/05/18 12:24:49, bartfab wrote: > If another ...
5 years, 7 months ago (2015-05-18 12:28:56 UTC) #4
bartfab (slow)
https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc File components/policy/core/common/cloud/cloud_policy_core.cc (right): https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc#newcode52 components/policy/core/common/cloud/cloud_policy_core.cc:52: remote_commands_service_.reset(); On 2015/05/18 12:28:56, binjin wrote: > On 2015/05/18 ...
5 years, 7 months ago (2015-05-18 12:30:45 UTC) #5
binjin
https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc File components/policy/core/common/cloud/cloud_policy_core.cc (right): https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc#newcode52 components/policy/core/common/cloud/cloud_policy_core.cc:52: remote_commands_service_.reset(); On 2015/05/18 12:30:45, bartfab wrote: > On 2015/05/18 ...
5 years, 7 months ago (2015-05-18 12:37:12 UTC) #6
bartfab (slow)
lgtm https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc File components/policy/core/common/cloud/cloud_policy_core.cc (right): https://codereview.chromium.org/1134133005/diff/1/components/policy/core/common/cloud/cloud_policy_core.cc#newcode52 components/policy/core/common/cloud/cloud_policy_core.cc:52: remote_commands_service_.reset(); On 2015/05/18 12:37:12, binjin wrote: > On ...
5 years, 7 months ago (2015-05-19 09:31:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1134133005/1
5 years, 7 months ago (2015-05-19 09:37:59 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 7 months ago (2015-05-19 09:41:00 UTC) #10
commit-bot: I haz the power
5 years, 7 months ago (2015-05-19 09:41:50 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/939825aae3cf24f32074f084d90647cb9bb90733
Cr-Commit-Position: refs/heads/master@{#330497}

Powered by Google App Engine
This is Rietveld 408576698