Guard use of Chrome TLS in GlobalActivityTracker::GetOrCreateTracker.

The implementation of heap_profiling uses base::Lock. That uses
GlobalActivityTracker::GetOrCreateTracker, which uses Chrome TLS. Since
heap_profiling may be used post TLS destruction, all called code must also guard
against use of Chrome TLS by checking

Bug: 864589
Change-Id: I9b7b61d702a79062f847f17d18b6d30f3681b837
Reviewed-by: Gabriel Charette <>
Commit-Queue: Erik Chen <>
Cr-Commit-Position: refs/heads/master@{#576224}
3 files changed