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

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

Issue 14987006: Remove the external protocol dialog black border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | « chrome/browser/chromeos/external_protocol_dialog.cc ('k') | no next file » | 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 86944c5fb3c741c1b96dd5ad4d29b6a38f5e757f..4f19e29da30f896b5516e92d3e33bd6cecc56700 100644
--- a/chrome/browser/ui/views/external_protocol_dialog.cc
+++ b/chrome/browser/ui/views/external_protocol_dialog.cc
@@ -154,16 +154,14 @@ ExternalProtocolDialog::ExternalProtocolDialog(WebContents* web_contents,
message_box_view_->SetCheckBoxLabel(
l10n_util::GetStringUTF16(IDS_EXTERNAL_PROTOCOL_CHECKBOX_TEXT));
- HWND root_hwnd;
+ // 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);
- } else {
- // Dialog is top level if we don't have a web_contents associated with us.
- root_hwnd = NULL;
}
- views::Widget::CreateWindowWithParent(this, root_hwnd)->Show();
+ views::DialogDelegate::CreateDialogWidget(this, NULL, root_hwnd)->Show();
}
// static
« no previous file with comments | « chrome/browser/chromeos/external_protocol_dialog.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698