diff --git a/src/profiler/strings-storage.cc b/src/profiler/strings-storage.cc index bc59403122..f149920820 100644 --- a/src/profiler/strings-storage.cc +++ b/src/profiler/strings-storage.cc @@ -27,6 +27,7 @@ StringsStorage::~StringsStorage() { } const char* StringsStorage::GetCopy(const char* src) { + base::MutexGuard guard(&mutex_); int len = static_cast(strlen(src)); base::HashMap::Entry* entry = GetEntry(src, len); if (entry->value == nullptr) {