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

Issue 5548001: It turns out the Cleanup() method in JsModalDialog is not (Closed)

Created:
10 years ago by Aaron Boodman
Modified:
9 years, 6 months ago
Reviewers:
zel, Matt Perry
CC:
chromium-reviews, ben+cc_chromium.org, jschuh
Visibility:
Public.

Description

It turns out the Cleanup() method in JsModalDialog is not needed. The check in it was reversed, causing it to never do anything, except in the case where the delegate had been deleted, in which case it would crash. The thing it was trying to do is already being done elsewhere in the case of OnAccept() and OnCancel(). That just leaves OnClose(). There are other things in here that really need cleanup, but I will do those separately. BUG=63732 TEST=See bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68447

Patch Set 1 #

Total comments: 1

Patch Set 2 : respond to comments #

Patch Set 3 : whoops #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -36 lines) Patch
M chrome/browser/ui/app_modal_dialogs/js_modal_dialog.h View 1 2 chunks +4 lines, -4 lines 1 comment Download
M chrome/browser/ui/app_modal_dialogs/js_modal_dialog.cc View 1 2 1 chunk +13 lines, -32 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Aaron Boodman
Review is to zelidrag since he was the last person to look at this code ...
10 years ago (2010-12-02 01:53:01 UTC) #1
Matt Perry
LGTM, with optional suggestion http://codereview.chromium.org/5548001/diff/1/chrome/browser/ui/app_modal_dialogs/js_modal_dialog.cc File chrome/browser/ui/app_modal_dialogs/js_modal_dialog.cc (right): http://codereview.chromium.org/5548001/diff/1/chrome/browser/ui/app_modal_dialogs/js_modal_dialog.cc#newcode124 chrome/browser/ui/app_modal_dialogs/js_modal_dialog.cc:124: if (!skip_this_dialog_) { maybe this ...
10 years ago (2010-12-03 00:39:21 UTC) #2
Matt Perry
LGTM http://codereview.chromium.org/5548001/diff/7001/chrome/browser/ui/app_modal_dialogs/js_modal_dialog.h File chrome/browser/ui/app_modal_dialogs/js_modal_dialog.h (right): http://codereview.chromium.org/5548001/diff/7001/chrome/browser/ui/app_modal_dialogs/js_modal_dialog.h#newcode91 chrome/browser/ui/app_modal_dialogs/js_modal_dialog.h:91: void UpdateDelegate(bool success, const std::wstring& prompt_text, one more ...
10 years ago (2010-12-03 00:58:52 UTC) #3
zel
10 years ago (2010-12-03 01:29:55 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698