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

Unified Diff: components/sessions/core/tab_restore_service_helper.cc

Issue 2674203003: [memory-infra] Whitelist TabRestoreService MDP. (Closed)
Patch Set: Fix tests Created 3 years, 10 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 | « base/trace_event/memory_infra_background_whitelist.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sessions/core/tab_restore_service_helper.cc
diff --git a/components/sessions/core/tab_restore_service_helper.cc b/components/sessions/core/tab_restore_service_helper.cc
index bbb41f5e8b6da032254dbbc3f66ca648ac111ea3..c140cda055aae4f78a99606a1018fe73e26eaaee 100644
--- a/components/sessions/core/tab_restore_service_helper.cc
+++ b/components/sessions/core/tab_restore_service_helper.cc
@@ -348,6 +348,11 @@ bool TabRestoreServiceHelper::OnMemoryDump(
base::trace_event::MemoryDumpManager::GetInstance()
->system_allocator_pool_name();
+ if (entries_.empty()) {
+ // Nothing to report
+ return true;
+ }
+
std::string entries_dump_name = base::StringPrintf(
"tab_restore/service_helper_0x%" PRIXPTR "/entries",
reinterpret_cast<uintptr_t>(this));
« no previous file with comments | « base/trace_event/memory_infra_background_whitelist.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698