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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 6272028: Delete tab_loader when there are no more tabs to be loaded or painted (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed new suppressions Created 9 years, 11 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 | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698