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 "components/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 <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
12 | 13 |
13 namespace variations { | 14 namespace variations { |
14 | 15 |
15 namespace { | 16 namespace { |
16 | 17 |
17 // 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. |
18 class GroupMapAccessor { | 19 class GroupMapAccessor { |
19 public: | 20 public: |
20 typedef std::map<ActiveGroupId, VariationID, ActiveGroupIdCompare> | 21 typedef std::map<ActiveGroupId, VariationID, ActiveGroupIdCompare> |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 GroupMapAccessor::GetInstance()->ClearAllMapsForTesting(); | 229 GroupMapAccessor::GetInstance()->ClearAllMapsForTesting(); |
229 } | 230 } |
230 | 231 |
231 void ClearAllVariationParams() { | 232 void ClearAllVariationParams() { |
232 VariationsParamAssociator::GetInstance()->ClearAllParamsForTesting(); | 233 VariationsParamAssociator::GetInstance()->ClearAllParamsForTesting(); |
233 } | 234 } |
234 | 235 |
235 } // namespace testing | 236 } // namespace testing |
236 | 237 |
237 } // namespace variations | 238 } // namespace variations |
OLD | NEW |