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

Issue 547253002: Ensure app install is aborted when the install dialog is closed (Closed)

Created:
6 years, 3 months ago by tmdiep
Modified:
6 years, 3 months ago
Reviewers:
tapted, sky, Finnur
CC:
chromium-reviews, tfarina, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Ensure app install is aborted when the install dialog is closed If the user initiates an app install via the app launcher, it is possible to close the install dialog by clicking on the background. The app launcher window and modal dialog are destroyed without cancelling the dialog, therefore keeping the install active. This patch ensures that ExtensionInstallPrompt::Delegate:: InstallUIAbort() is called in this scenario to allow the delegate (WebstoreStandaloneInstaller) to abort the install. BUG=409616 TEST=browser_tests Committed: https://crrev.com/d0373dd21f2e1690cf484b4655226a54b3737612 Cr-Commit-Position: refs/heads/master@{#294505}

Patch Set 1 #

Total comments: 18

Patch Set 2 : Addressed tapted review comments #

Patch Set 3 : Lower risk fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -23 lines) Patch
M chrome/browser/ui/views/extensions/extension_install_dialog_view.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view.cc View 1 2 3 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc View 1 2 3 chunks +100 lines, -19 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
tmdiep
This is a corner case regression and the bug has a video with steps to ...
6 years, 3 months ago (2014-09-08 00:02:09 UTC) #2
tapted
just one question in dialog_client_view.cc really https://codereview.chromium.org/547253002/diff/1/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view.cc (right): https://codereview.chromium.org/547253002/diff/1/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc#newcode871 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc:871: if (sampling_event_.get()) nit: ...
6 years, 3 months ago (2014-09-08 07:42:21 UTC) #3
tmdiep
https://codereview.chromium.org/547253002/diff/1/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view.cc (right): https://codereview.chromium.org/547253002/diff/1/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc#newcode871 chrome/browser/ui/views/extensions/extension_install_dialog_view.cc:871: if (sampling_event_.get()) On 2014/09/08 07:42:20, tapted wrote: > nit: ...
6 years, 3 months ago (2014-09-08 08:26:08 UTC) #4
tapted
lgtm https://codereview.chromium.org/547253002/diff/1/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc File chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc (right): https://codereview.chromium.org/547253002/diff/1/chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc#newcode253 chrome/browser/ui/views/extensions/extension_install_dialog_view_browsertest.cc:253: delegate_view->OnClosed(); On 2014/09/08 08:26:08, tmdiep wrote: > On ...
6 years, 3 months ago (2014-09-08 09:28:56 UTC) #5
sky
Are you sure this doesn't require updating any existing subclasses of OnClosed? I would prefer ...
6 years, 3 months ago (2014-09-08 16:19:23 UTC) #6
littleone691_gmail.com
On Mon, Sep 8, 2014 at 12:19 PM, <sky@chromium.org> wrote: > Are you sure this ...
6 years, 3 months ago (2014-09-08 16:21:03 UTC) #7
tmdiep
On 2014/09/08 16:19:23, sky wrote: > Are you sure this doesn't require updating any existing ...
6 years, 3 months ago (2014-09-09 00:37:57 UTC) #10
tapted
I think I liked the idea of using WidgetClosing more, but I don't think there's ...
6 years, 3 months ago (2014-09-10 12:55:28 UTC) #11
tmdiep
On 2014/09/10 12:55:28, tapted wrote: > I think I liked the idea of using WidgetClosing ...
6 years, 3 months ago (2014-09-10 23:56:35 UTC) #13
Finnur
As a quick fix this LGTM.
6 years, 3 months ago (2014-09-11 09:33:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/547253002/60001
6 years, 3 months ago (2014-09-11 21:31:04 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:60001) as 53bd41732fc06093775e791ecbb0058885f6f6e8
6 years, 3 months ago (2014-09-12 00:44:08 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-12 00:51:46 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d0373dd21f2e1690cf484b4655226a54b3737612
Cr-Commit-Position: refs/heads/master@{#294505}

Powered by Google App Engine
This is Rietveld 408576698