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

Unified Diff: components/variations/variations_associated_data.cc

Issue 1905423002: Leak VariationsParamAssociator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/variations/variations_associated_data.cc
diff --git a/components/variations/variations_associated_data.cc b/components/variations/variations_associated_data.cc
index 4f0b471a5d095b6f8ed4b42f85028e017dfadc8c..9a84a32fe64637789f227c36677e3ea92e7210eb 100644
--- a/components/variations/variations_associated_data.cc
+++ b/components/variations/variations_associated_data.cc
@@ -109,7 +109,9 @@ class VariationsParamAssociator {
// Retrieve the singleton.
static VariationsParamAssociator* GetInstance() {
- return base::Singleton<VariationsParamAssociator>::get();
+ return base::Singleton<
+ VariationsParamAssociator,
+ base::LeakySingletonTraits<VariationsParamAssociator>>::get();
}
bool AssociateVariationParams(const std::string& trial_name,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698