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

Issue 373006: Implement window.alert() and its cousins for extensions.... (Closed)

Created:
11 years, 1 month ago by Pam (message me for reviews)
Modified:
9 years, 5 months ago
CC:
chromium-reviews_googlegroups.com, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org, brettw+cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Implement window.alert() and its cousins for extensions. Second try, now with fixed observer. BUG=12126 TEST=put a window.prompt() in a background page, a browser action, and a page action. Make sure it gets the result back correctly. Also make sure it still works when called from a web page. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31204

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+246 lines, -114 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +16 lines, -4 lines 0 comments Download
M chrome/browser/app_modal_dialog.h View 1 4 chunks +12 lines, -4 lines 0 comments Download
M chrome/browser/app_modal_dialog.cc View 1 6 chunks +30 lines, -32 lines 0 comments Download
M chrome/browser/app_modal_dialog_gtk.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.h View 3 chunks +13 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 5 chunks +36 lines, -4 lines 0 comments Download
A chrome/browser/jsmessage_box_client.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/browser/jsmessage_box_handler.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/jsmessage_box_handler.cc View 1 2 chunks +4 lines, -36 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 4 chunks +14 lines, -6 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 4 chunks +54 lines, -16 lines 0 comments Download
M chrome/browser/views/jsmessage_box_dialog.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/jsmessage_box_dialog.cc View 2 chunks +10 lines, -6 lines 0 comments Download
M chrome/chrome.gyp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Pam (message me for reviews)
Matt: Please re-review. Tony: FYI in case there was a reason AppModalDialog was observing all ...
11 years, 1 month ago (2009-11-06 01:34:44 UTC) #1
tony
On 2009/11/06 01:34:44, Pam wrote: > Tony: FYI in case there was a reason AppModalDialog ...
11 years, 1 month ago (2009-11-06 01:36:48 UTC) #2
Matt Perry
lgtm http://codereview.chromium.org/373006/diff/1/6 File chrome/browser/app_modal_dialog.cc (right): http://codereview.chromium.org/373006/diff/1/6#newcode23 Line 23: tab_contents_(client->AsTabContents()), nit: I don't think you actually ...
11 years, 1 month ago (2009-11-06 01:45:42 UTC) #3
Pam (message me for reviews)
11 years, 1 month ago (2009-11-06 01:56:19 UTC) #4
Thanks, I'll land this as soon as it passes the trybots.

http://codereview.chromium.org/373006/diff/1/6
File chrome/browser/app_modal_dialog.cc (right):

http://codereview.chromium.org/373006/diff/1/6#newcode23
Line 23: tab_contents_(client->AsTabContents()),
On 2009/11/06 01:45:42, Matt Perry wrote:
> nit: I don't think you actually need to cache this, since you no longer use
the
> client_ pointer during destruction (since Observe is called only for this
tab).

Duh, of course. tab_contents_ pulled back out.

http://codereview.chromium.org/373006/diff/1/6#newcode44
Line 44: skip_this_dialog_ = true;
On 2009/11/06 01:45:42, Matt Perry wrote:
> maybe you should NULL out client_ and tab_contents_ here, since they'll both
be
> invalid anyway.

Sure, done.

Powered by Google App Engine
This is Rietveld 408576698