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

Issue 2339853003: MD Settings: Fix Reset profile dialog scenario that causes a crash. (Closed)

Created:
4 years, 3 months ago by dpapad
Modified:
4 years, 3 months ago
Reviewers:
Dan Beam
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: Fix Reset profile dialog scenario that causes a crash. 1) Disable the "Cancel" button when clearing is in progress. User can still close though using 'x' or 'esc' key. 2) Stop destroying the dialog once it is closed. This allows the dialog to be re-shown with the progress spinner visible and action buttons disabled, if clearing is still in progress when it is re-shown. This matches exactly the behavior of this dialog in the old Options. BUG=641291 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/882a6dc0c0299130c7dc91bce0d2ba50c63cbec3 Cr-Commit-Position: refs/heads/master@{#419664}

Patch Set 1 #

Patch Set 2 : Fix #

Patch Set 3 : Fix more. #

Total comments: 13

Patch Set 4 : Address comments. #

Total comments: 2

Patch Set 5 : Nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -29 lines) Patch
M chrome/browser/resources/settings/reset_page/powerwash_dialog.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_page.html View 1 2 3 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_page.js View 1 2 3 2 chunks +13 lines, -16 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.html View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.js View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/settings_resources.grd View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webui/settings/reset_page_test.js View 1 2 3 8 chunks +15 lines, -9 lines 0 comments Download

Messages

Total messages: 24 (12 generated)
dpapad
@dbeam: Sending to you since you have already reviewed a related bug fix (https://bugs.chromium.org/p/chromium/issues/detail?id=628159). See ...
4 years, 3 months ago (2016-09-14 20:23:42 UTC) #9
Dan Beam
i'm really confused by this CL don't disable the cancel button if you can still ...
4 years, 3 months ago (2016-09-15 21:15:40 UTC) #10
dpapad
On 2016/09/15 at 21:15:40, dbeam wrote: > i'm really confused by this CL Did you ...
4 years, 3 months ago (2016-09-15 21:43:10 UTC) #11
Dan Beam
i think you should ask bettes@ about this we're in a similar boat with clear ...
4 years, 3 months ago (2016-09-15 21:48:13 UTC) #12
dpapad
On 2016/09/15 at 21:48:13, dbeam wrote: > i think you should ask bettes@ about this ...
4 years, 3 months ago (2016-09-15 21:55:56 UTC) #13
Dan Beam
https://codereview.chromium.org/2339853003/diff/40001/chrome/browser/resources/settings/reset_page/reset_page.html File chrome/browser/resources/settings/reset_page/reset_page.html (right): https://codereview.chromium.org/2339853003/diff/40001/chrome/browser/resources/settings/reset_page/reset_page.html#newcode18 chrome/browser/resources/settings/reset_page/reset_page.html:18: <template is="dom-if" if="[[showResetProfileDialog_]]"> wanna use <cr-lazy-render> if you never ...
4 years, 3 months ago (2016-09-17 01:00:33 UTC) #14
dpapad
Addressed comments. PTAL https://codereview.chromium.org/2339853003/diff/40001/chrome/browser/resources/settings/reset_page/reset_page.html File chrome/browser/resources/settings/reset_page/reset_page.html (right): https://codereview.chromium.org/2339853003/diff/40001/chrome/browser/resources/settings/reset_page/reset_page.html#newcode18 chrome/browser/resources/settings/reset_page/reset_page.html:18: <template is="dom-if" if="[[showResetProfileDialog_]]"> On 2016/09/17 at ...
4 years, 3 months ago (2016-09-20 00:52:36 UTC) #16
Dan Beam
lgtm https://codereview.chromium.org/2339853003/diff/80001/chrome/browser/resources/settings/settings_resources.grd File chrome/browser/resources/settings/settings_resources.grd (right): https://codereview.chromium.org/2339853003/diff/80001/chrome/browser/resources/settings/settings_resources.grd#newcode487 chrome/browser/resources/settings/settings_resources.grd:487: flattenhtml="true" can you use preprocess="true" instead?
4 years, 3 months ago (2016-09-20 00:56:59 UTC) #17
dpapad
Thanks! https://codereview.chromium.org/2339853003/diff/80001/chrome/browser/resources/settings/settings_resources.grd File chrome/browser/resources/settings/settings_resources.grd (right): https://codereview.chromium.org/2339853003/diff/80001/chrome/browser/resources/settings/settings_resources.grd#newcode487 chrome/browser/resources/settings/settings_resources.grd:487: flattenhtml="true" On 2016/09/20 at 00:56:59, Dan Beam wrote: ...
4 years, 3 months ago (2016-09-20 01:17:47 UTC) #18
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/2339853003/100001
4 years, 3 months ago (2016-09-20 01:21:23 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 3 months ago (2016-09-20 03:04:41 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 03:06:56 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/882a6dc0c0299130c7dc91bce0d2ba50c63cbec3
Cr-Commit-Position: refs/heads/master@{#419664}

Powered by Google App Engine
This is Rietveld 408576698