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

Unified Diff: chrome/browser/ui/views/external_protocol_dialog.cc

Issue 25589002: Enable external protocol dialog on Windows Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/stubs_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3405c5cb40a9b1940e5f872dd57be4bac45b3624..a7ae8af2b54f0519e5d61deea7ffe9c609200b4e 100644
--- a/chrome/browser/ui/views/external_protocol_dialog.cc
+++ b/chrome/browser/ui/views/external_protocol_dialog.cc
@@ -156,13 +156,10 @@ ExternalProtocolDialog::ExternalProtocolDialog(WebContents* web_contents,
l10n_util::GetStringUTF16(IDS_EXTERNAL_PROTOCOL_CHECKBOX_TEXT));
// Dialog is top level if we don't have a web_contents associated with us.
- HWND root_hwnd = NULL;
- if (web_contents_) {
- root_hwnd = GetAncestor(web_contents_->GetView()->GetContentNativeView(),
- GA_ROOT);
- }
-
- CreateBrowserModalDialogViews(this, root_hwnd)->Show();
+ gfx::NativeWindow parent_window = NULL;
+ if (web_contents_)
+ parent_window = web_contents_->GetView()->GetTopLevelNativeWindow();
+ CreateBrowserModalDialogViews(this, parent_window)->Show();
}
// static
« no previous file with comments | « no previous file | chrome/browser/ui/views/stubs_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698