OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/common/metrics/variations/variations_associated_data.h" | 5 #include "components/variations/variations_associated_data.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
| 8 #include <utility> |
8 #include <vector> | 9 #include <vector> |
9 | 10 |
10 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
11 #include "chrome/common/metrics/metrics_util.h" | 12 #include "components/variations/metrics_util.h" |
12 #include "chrome/common/metrics/variations/variation_ids.h" | |
13 | 13 |
14 namespace chrome_variations { | 14 namespace chrome_variations { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 // The internal singleton accessor for the map, used to keep it thread-safe. | 18 // The internal singleton accessor for the map, used to keep it thread-safe. |
19 class GroupMapAccessor { | 19 class GroupMapAccessor { |
20 public: | 20 public: |
21 typedef std::map<ActiveGroupId, VariationID, ActiveGroupIdCompare> | 21 typedef std::map<ActiveGroupId, VariationID, ActiveGroupIdCompare> |
22 GroupToIDMap; | 22 GroupToIDMap; |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 GroupMapAccessor::GetInstance()->ClearAllMapsForTesting(); | 227 GroupMapAccessor::GetInstance()->ClearAllMapsForTesting(); |
228 } | 228 } |
229 | 229 |
230 void ClearAllVariationParams() { | 230 void ClearAllVariationParams() { |
231 VariationsParamAssociator::GetInstance()->ClearAllParamsForTesting(); | 231 VariationsParamAssociator::GetInstance()->ClearAllParamsForTesting(); |
232 } | 232 } |
233 | 233 |
234 } // namespace testing | 234 } // namespace testing |
235 | 235 |
236 } // namespace chrome_variations | 236 } // namespace chrome_variations |
OLD | NEW |