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

Issue 2348633002: Make sure to to check weak ptr validity before use in UnpackedInstaller (Closed)

Created:
4 years, 3 months ago by asargent_no_longer_on_chrome
Modified:
4 years, 3 months ago
Reviewers:
lazyboy
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure to to check weak ptr validity before use in UnpackedInstaller The stack in this crash report indicates that we're inside UnpackedInstaller::InstallExtension, and we know that function gets called via a posted task (via OnInstallChecksComplete). The code inside InstallExtension uses the weak pointer to the ExtensionService without validating it first, so we strongly suspect a null ExtensionService to be the root cause of the crash. BUG=647265 Committed: https://crrev.com/1e46c51094e8d7576226ae3f119ad1b266f0aa7f Cr-Commit-Position: refs/heads/master@{#419060}

Patch Set 1 #

Total comments: 2

Patch Set 2 : reset callback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M chrome/browser/extensions/unpacked_installer.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
asargent_no_longer_on_chrome
4 years, 3 months ago (2016-09-15 21:35:57 UTC) #2
lazyboy
lgtm. https://codereview.chromium.org/2348633002/diff/1/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc (right): https://codereview.chromium.org/2348633002/diff/1/chrome/browser/extensions/unpacked_installer.cc#newcode372 chrome/browser/extensions/unpacked_installer.cc:372: if (!service_weak_.get()) Should we also Reset |callback_|?
4 years, 3 months ago (2016-09-15 21:45:09 UTC) #5
asargent_no_longer_on_chrome
https://codereview.chromium.org/2348633002/diff/1/chrome/browser/extensions/unpacked_installer.cc File chrome/browser/extensions/unpacked_installer.cc (right): https://codereview.chromium.org/2348633002/diff/1/chrome/browser/extensions/unpacked_installer.cc#newcode372 chrome/browser/extensions/unpacked_installer.cc:372: if (!service_weak_.get()) On 2016/09/15 21:45:09, lazyboy wrote: > Should ...
4 years, 3 months ago (2016-09-16 00:03:24 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2348633002/20001
4 years, 3 months ago (2016-09-16 00:04:03 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-16 00:46:26 UTC) #12
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 00:48:40 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1e46c51094e8d7576226ae3f119ad1b266f0aa7f
Cr-Commit-Position: refs/heads/master@{#419060}

Powered by Google App Engine
This is Rietveld 408576698