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

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

Issue 14566024: Remove hung renderer dialog black border. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove debugging code. 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/ui/views/hung_renderer_view.h ('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/hung_renderer_view.cc
diff --git a/chrome/browser/ui/views/hung_renderer_view.cc b/chrome/browser/ui/views/hung_renderer_view.cc
index c9d2608b66c872e9eba53f4ed0ced5805ae72694..11f7d03e5f5452c96dac98e440e4ba840868f8af 100644
--- a/chrome/browser/ui/views/hung_renderer_view.cc
+++ b/chrome/browser/ui/views/hung_renderer_view.cc
@@ -191,10 +191,11 @@ static const int kCentralColumnPadding =
// HungRendererDialogView, public:
// static
-HungRendererDialogView* HungRendererDialogView::Create() {
+HungRendererDialogView* HungRendererDialogView::Create(
+ gfx::NativeView context) {
if (!g_instance_) {
g_instance_ = new HungRendererDialogView;
- views::Widget::CreateWindow(g_instance_);
+ views::DialogDelegate::CreateDialogWidget(g_instance_, context, NULL);
}
return g_instance_;
}
@@ -442,7 +443,8 @@ namespace chrome {
void ShowHungRendererDialog(WebContents* contents) {
if (!logging::DialogsAreSuppressed() &&
!PlatformShowCustomHungRendererDialog(contents)) {
- HungRendererDialogView* view = HungRendererDialogView::Create();
+ HungRendererDialogView* view = HungRendererDialogView::Create(
+ platform_util::GetTopLevel(contents->GetView()->GetNativeView()));
view->ShowForWebContents(contents);
}
}
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698