Index: chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.cc |
=================================================================== |
--- chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.cc (revision 177189) |
+++ chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.cc (working copy) |
@@ -10,10 +10,6 @@ |
#include "content/public/browser/web_contents_view.h" |
#include "ui/base/text/text_elider.h" |
-#if defined(USE_AURA) |
-#include "ui/aura/root_window.h" |
-#endif |
- |
using content::JavaScriptDialogCreator; |
using content::WebContents; |
@@ -84,13 +80,6 @@ |
NativeAppModalDialog* JavaScriptAppModalDialog::CreateNativeDialog() { |
gfx::NativeWindow parent_window = |
web_contents()->GetView()->GetTopLevelNativeWindow(); |
-#if defined(USE_AURA) |
- if (!parent_window->GetRootWindow()) { |
- // When we are part of a WebContents that isn't actually being displayed on |
- // the screen, we can't actually attach to it. |
- parent_window = NULL; |
- } |
-#endif |
return NativeAppModalDialog::CreateNativeJavaScriptPrompt(this, |
parent_window); |
} |