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

Issue 2161753002: MD Settings: Bluetooth dialog, remove unnecessary 'close-dialog' event. (Closed)

Created:
4 years, 5 months ago by dpapad
Modified:
4 years, 5 months ago
Reviewers:
stevenjb, Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, Dan Beam, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Bluetooth dialog, remove unnecessary 'close-dialog' event. The interaction of blueetooth-device-dialog with its parent (bluetooth-page) was more complex than necessary. Specifically summarizing the complexity below - The dialog was firing a "close-dialog" event. In some of those occasions the dialog had already been closed by the time this event was fired (see BluetoothDeviceDialog#onIronOverlayClosed_). - Parent was catching the "close-dialog" event and was closing the dialog with the close() method (sometimes unnecessarily, since the dialog was already closed). - Parent was also additionally listening to the 'iron-overlay-closed' event. It seems unnecessary to have the parent listen to two different events, one to trigger the dialog closing, and one that fires after the dialog is closed. Instead, the dialog can always close itself directly, and the parent can only listen to the 'iron-overlay-closed' event. This simplification is part of the effort to migrate <cr-dialog> to use native <dialog>. Native <dialog> throws an error if close() is called while it is already closed. BUG=625332 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/f4af3d1625c8a80eface78c51d3a2811124f56d8 Cr-Commit-Position: refs/heads/master@{#406339}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -27 lines) Patch
M chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.html View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/bluetooth_page/bluetooth_device_dialog.js View 4 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/resources/settings/bluetooth_page/bluetooth_page.html View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js View 1 3 chunks +4 lines, -13 lines 0 comments Download

Messages

Total messages: 27 (18 generated)
dpapad
@dbeam: Assigned @stevenjb as a reviewer, but feel free to review. I recall that you ...
4 years, 5 months ago (2016-07-18 20:39:15 UTC) #11
dpapad
On 2016/07/18 at 20:39:15, dpapad wrote: > @dbeam: Assigned @stevenjb as a reviewer, but feel ...
4 years, 5 months ago (2016-07-19 17:04:16 UTC) #16
stevenjb
Sorry, I thought dan was reviewing this. I -think- that the complexity was related to ...
4 years, 5 months ago (2016-07-19 17:21:55 UTC) #17
Dan Beam
lgtm
4 years, 5 months ago (2016-07-19 17:32:45 UTC) #19
dpapad
Thanks. https://codereview.chromium.org/2161753002/diff/1/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js File chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js (right): https://codereview.chromium.org/2161753002/diff/1/chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js#newcode535 chrome/browser/resources/settings/bluetooth_page/bluetooth_page.js:535: return; On 2016/07/19 at 17:21:54, stevenjb wrote: > ...
4 years, 5 months ago (2016-07-19 17:45:51 UTC) #20
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/2161753002/20001
4 years, 5 months ago (2016-07-19 18:01:02 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-19 19:17:43 UTC) #24
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 19:17:54 UTC) #25
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 19:20:29 UTC) #27
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/f4af3d1625c8a80eface78c51d3a2811124f56d8
Cr-Commit-Position: refs/heads/master@{#406339}

Powered by Google App Engine
This is Rietveld 408576698