Index: chrome/browser/sessions/session_restore.cc |
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc |
index 3689b8aa36fcece43d850df77e900fa517e44066..b1499ea03f9054d07e3a5bc005cd33cce6134d9a 100644 |
--- a/chrome/browser/sessions/session_restore.cc |
+++ b/chrome/browser/sessions/session_restore.cc |
@@ -321,7 +321,8 @@ void TabLoader::Observe(NotificationType type, |
NOTREACHED() << "Unknown notification received:" << type.value; |
} |
// Delete ourselves when we're not waiting for any more notifications. |
- if (got_first_paint_&& tabs_loading_.empty() && tabs_to_load_.empty()) |
+ if ((got_first_paint_ || render_widget_hosts_to_paint_.empty()) && |
+ tabs_loading_.empty() && tabs_to_load_.empty()) |
delete this; |
} |