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

Issue 1070273003: Dismiss DevicePermissionsPrompt when the widgets are destroyed. (Closed)

Created:
5 years, 8 months ago by Reilly Grant (use Gerrit)
Modified:
5 years, 8 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Dismiss DevicePermissionsPrompt when the widgets are destroyed. Destruction of the widget hierarchy (which happens if the application window is closed) does not result in a call to either Accept or Cancel. To catch this DevicePermissionsDialogView should be ready to dismiss the prompt if the delegate is destroyed. Otherwise the extension function call is never completed and the prompt object is leaked. Committed: https://crrev.com/571132c474ef060b1f7db932eea3f552f6d8fcca Cr-Commit-Position: refs/heads/master@{#325953}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed pkasting@'s nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -12 lines) Patch
M chrome/browser/ui/views/extensions/device_permissions_dialog_view.h View 1 1 chunk +3 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc View 1 1 chunk +4 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Reilly Grant (use Gerrit)
Peter, please take a look. Let me know if there's a better way to fix ...
5 years, 8 months ago (2015-04-20 19:32:40 UTC) #2
Peter Kasting
LGTM https://codereview.chromium.org/1070273003/diff/1/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc File chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc (right): https://codereview.chromium.org/1070273003/diff/1/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc#newcode125 chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc:125: // be closed including the unexpected closure of ...
5 years, 8 months ago (2015-04-20 21:33:33 UTC) #3
Reilly Grant (use Gerrit)
https://codereview.chromium.org/1070273003/diff/1/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc File chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc (right): https://codereview.chromium.org/1070273003/diff/1/chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc#newcode125 chrome/browser/ui/views/extensions/device_permissions_dialog_view.cc:125: // be closed including the unexpected closure of its ...
5 years, 8 months ago (2015-04-20 23:14:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1070273003/20001
5 years, 8 months ago (2015-04-20 23:16:51 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 8 months ago (2015-04-21 00:32:01 UTC) #8
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 00:32:55 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/571132c474ef060b1f7db932eea3f552f6d8fcca
Cr-Commit-Position: refs/heads/master@{#325953}

Powered by Google App Engine
This is Rietveld 408576698