diff options
-rw-r--r-- | chrome/browser/sessions/session_restore.cc | 3 | ||||
-rw-r--r-- | tools/valgrind/memcheck/suppressions.txt | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc index b1499ea..3689b8a 100644 --- a/chrome/browser/sessions/session_restore.cc +++ b/chrome/browser/sessions/session_restore.cc @@ -321,8 +321,7 @@ 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_ || render_widget_hosts_to_paint_.empty()) && - tabs_loading_.empty() && tabs_to_load_.empty()) + if (got_first_paint_&& tabs_loading_.empty() && tabs_to_load_.empty()) delete this; } diff --git a/tools/valgrind/memcheck/suppressions.txt b/tools/valgrind/memcheck/suppressions.txt index 2eab475..cece68b 100644 --- a/tools/valgrind/memcheck/suppressions.txt +++ b/tools/valgrind/memcheck/suppressions.txt @@ -3684,6 +3684,11 @@ bug_71152 Memcheck:Leak fun:_Znw* + fun:_ZN71_GLOBAL__N_chrome_browser_sessions_session_restore.cc* + fun:_ZN71_GLOBAL__N_chrome_browser_sessions_session_restore.cc* + fun:_ZN71_GLOBAL__N_chrome_browser_sessions_session_restore.cc* + fun:_Z16DispatchToMethodIN71_GLOBAL__N_chrome_browser_sessions_session_restore.cc* + fun:_ZN12CallbackImplIN71_GLOBAL__N_chrome_browser_sessions_session_restore.cc* fun:_ZN14SessionService20OnGotSessionCommandsEi13scoped_refptrIN18BaseSessionService26InternalGetCommandsRequestEE fun:_Z16DispatchToMethodI14SessionServiceMS0_Fvi13scoped_refptrIN18BaseSessionService26InternalGetCommandsRequestEEEiS4_EvPT_T0_RK6Tuple2IT1_T2_E fun:_ZN12CallbackImplI14SessionServiceMS0_Fvi13scoped_refptrIN18BaseSessionService26InternalGetCommandsRequestEEE6Tuple2IiS4_EE13RunWithParamsERKS8_ |