Index: chrome/browser/ui/views/external_protocol_dialog.cc |
diff --git a/chrome/browser/ui/views/external_protocol_dialog.cc b/chrome/browser/ui/views/external_protocol_dialog.cc |
index 2112377a00d142e01ac15494dbb925acc80a1c17..86944c5fb3c741c1b96dd5ad4d29b6a38f5e757f 100644 |
--- a/chrome/browser/ui/views/external_protocol_dialog.cc |
+++ b/chrome/browser/ui/views/external_protocol_dialog.cc |
@@ -13,6 +13,7 @@ |
#include "chrome/browser/external_protocol/external_protocol_handler.h" |
#include "chrome/browser/tab_contents/tab_util.h" |
#include "content/public/browser/web_contents.h" |
+#include "content/public/browser/web_contents_view.h" |
#include "grit/chromium_strings.h" |
#include "grit/generated_resources.h" |
#include "ui/base/l10n/l10n_util.h" |
@@ -155,7 +156,8 @@ ExternalProtocolDialog::ExternalProtocolDialog(WebContents* web_contents, |
HWND root_hwnd; |
if (web_contents_) { |
- root_hwnd = GetAncestor(web_contents_->GetContentNativeView(), GA_ROOT); |
+ root_hwnd = GetAncestor(web_contents_->GetView()->GetContentNativeView(), |
+ GA_ROOT); |
} else { |
// Dialog is top level if we don't have a web_contents associated with us. |
root_hwnd = NULL; |