Add scoped_ptr for the extension in ExtensionApps::Uninstall.
When select 'Also clear data from Chrome...' for bookmark, the extension is uninstalled first, then when clear data, it crashes when GetFullLaunchURL from the extension, because the extension has been uninstalled. So add scoped_ptr for the extension, which is the same implementation from the ExtensionUninstallDialog: https://cs.chromium.org/chromium/src/chrome/browser/extensions/extension_uninstall_dialog.h?l=160 https://cs.chromium.org/chromium/src/chrome/browser/extensions/extension_uninstall_dialog.cc?l=176 BUG=1047092 Change-Id: Idca8172a671f69efe2e9b9ce19fb2037d3f57fa7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2029475Reviewed-by:Dominick Ng <dominickn@chromium.org> Commit-Queue: Nancy Wang <nancylingwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#737088}
Showing
Please register or sign in to comment