diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:11:57 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 21:11:57 +0000 |
commit | 8710e40ca5da072e49ca2e5c5ba5c17eb3379896 (patch) | |
tree | 32cb57353d287426d44d18347933fbfd0247f6e7 /chrome/browser/app_modal_dialog_gtk.cc | |
parent | a034b50b091f08d0a1ef5dbd61b7bc3c91afe5a9 (diff) | |
download | chromium_src-8710e40ca5da072e49ca2e5c5ba5c17eb3379896.zip chromium_src-8710e40ca5da072e49ca2e5c5ba5c17eb3379896.tar.gz chromium_src-8710e40ca5da072e49ca2e5c5ba5c17eb3379896.tar.bz2 |
Revert 31110 - Implement window.alert() and its cousins for extensions.
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.
Review URL: http://codereview.chromium.org/341089
TBR=pam@chromium.org
Review URL: http://codereview.chromium.org/360063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/app_modal_dialog_gtk.cc')
-rw-r--r-- | chrome/browser/app_modal_dialog_gtk.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/app_modal_dialog_gtk.cc b/chrome/browser/app_modal_dialog_gtk.cc index d3bbd48..0191e84 100644 --- a/chrome/browser/app_modal_dialog_gtk.cc +++ b/chrome/browser/app_modal_dialog_gtk.cc @@ -122,7 +122,7 @@ void AppModalDialog::CreateAndShowDialog() { } g_object_unref(window_group); - gfx::NativeWindow window = client_->GetMessageBoxRootWindow(); + GtkWindow* window = tab_contents_->view()->GetTopLevelNativeWindow(); dialog_ = gtk_message_dialog_new(window, GTK_DIALOG_MODAL, message_type, buttons, "%s", WideToUTF8(message_text_).c_str()); gtk_window_set_title(GTK_WINDOW(dialog_), WideToUTF8(title_).c_str()); |