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

Unified Diff: chrome/common/metrics/variations/variations_associated_data.cc

Issue 22031002: Omnibox: Create DemoteByType Experiment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix include that caused android build failure Created 7 years, 4 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 | « chrome/common/metrics/variations/variations_associated_data.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/metrics/variations/variations_associated_data.cc
diff --git a/chrome/common/metrics/variations/variations_associated_data.cc b/chrome/common/metrics/variations/variations_associated_data.cc
index f74bc85bde80e61cd53aa6b38a37a73bd5c03e0c..9a1a56ec18dfaeda9b07d98337097b902601f9fa 100644
--- a/chrome/common/metrics/variations/variations_associated_data.cc
+++ b/chrome/common/metrics/variations/variations_associated_data.cc
@@ -132,6 +132,11 @@ class VariationsParamAssociator {
return true;
}
+ void ClearAllParamsForTesting() {
+ base::AutoLock scoped_lock(lock_);
+ variation_params_.clear();
+ }
+
private:
friend struct DefaultSingletonTraits<VariationsParamAssociator>;
@@ -222,6 +227,10 @@ void ClearAllVariationIDs() {
GroupMapAccessor::GetInstance()->ClearAllMapsForTesting();
}
+void ClearAllVariationParams() {
+ VariationsParamAssociator::GetInstance()->ClearAllParamsForTesting();
+}
+
} // namespace testing
} // namespace chrome_variations
« no previous file with comments | « chrome/common/metrics/variations/variations_associated_data.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698