summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 21:41:37 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-25 21:41:37 +0000
commit47d53eaa9d114bc433f41c563706d6fc2ea62234 (patch)
treedaf6606ba7b33ef88050fa0c0a215df0db325137
parente77afc6699476ded4adc76456627bc6bce8f75ef (diff)
downloadchromium_src-47d53eaa9d114bc433f41c563706d6fc2ea62234.zip
chromium_src-47d53eaa9d114bc433f41c563706d6fc2ea62234.tar.gz
chromium_src-47d53eaa9d114bc433f41c563706d6fc2ea62234.tar.bz2
Adds some debugging code in hopes of isolating a crash.
BUG=58853 TEST=none Review URL: http://codereview.chromium.org/6395002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72550 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/ui/views/hung_renderer_view.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/ui/views/hung_renderer_view.cc b/chrome/browser/ui/views/hung_renderer_view.cc
index 99610bb..393ce69 100644
--- a/chrome/browser/ui/views/hung_renderer_view.cc
+++ b/chrome/browser/ui/views/hung_renderer_view.cc
@@ -72,8 +72,13 @@ HungPagesTableModel::~HungPagesTableModel() {
}
void HungPagesTableModel::InitForTabContents(TabContents* hung_contents) {
+ // TODO(sky): remove when figure out cause of 58853.
+ CHECK(hung_contents->render_view_host());
tab_contentses_.clear();
for (TabContentsIterator it; !it.done(); ++it) {
+ // TODO(sky): remove when figure out cause of 58853.
+ CHECK(it->render_view_host());
+ CHECK(hung_contents->render_view_host());
if (it->GetRenderProcessHost() == hung_contents->GetRenderProcessHost())
tab_contentses_.push_back(*it);
}
@@ -226,6 +231,8 @@ HungRendererDialogView::~HungRendererDialogView() {
void HungRendererDialogView::ShowForTabContents(TabContents* contents) {
DCHECK(contents && window());
+ // TODO(sky): remove when figure out cause of 58853.
+ CHECK(contents->render_view_host());
contents_ = contents;
// Don't show the warning unless the foreground window is the frame, or this
@@ -239,6 +246,9 @@ void HungRendererDialogView::ShowForTabContents(TabContents* contents) {
}
if (!window()->IsActive()) {
+ // TODO(sky): remove when figure out cause of 58853.
+ CHECK(contents->render_view_host());
+
gfx::Rect bounds = GetDisplayBounds(contents);
window()->SetBounds(bounds, frame_hwnd);
@@ -449,6 +459,8 @@ static HungRendererDialogView* CreateHungRendererDialogView() {
namespace hung_renderer_dialog {
void ShowForTabContents(TabContents* contents) {
+ // TODO(sky): remove when figure out cause of 58853.
+ CHECK(contents->render_view_host());
if (!logging::DialogsAreSuppressed()) {
if (!g_instance)
g_instance = CreateHungRendererDialogView();