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/browser/metrics/variations/variations_seed_processor.h" | 5 #include "components/variations/variations_seed_processor.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
14 #include "base/version.h" | 14 #include "base/version.h" |
15 #include "chrome/browser/metrics/proto/trials_seed.pb.h" | 15 #include "components/variations/variations_associated_data.h" |
16 #include "chrome/common/metrics/variations/variations_associated_data.h" | |
17 | 16 |
18 namespace chrome_variations { | 17 namespace chrome_variations { |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
22 Study_Platform GetCurrentPlatform() { | 21 Study_Platform GetCurrentPlatform() { |
23 #if defined(OS_WIN) | 22 #if defined(OS_WIN) |
24 return Study_Platform_PLATFORM_WINDOWS; | 23 return Study_Platform_PLATFORM_WINDOWS; |
25 #elif defined(OS_IOS) | 24 #elif defined(OS_IOS) |
26 return Study_Platform_PLATFORM_IOS; | 25 return Study_Platform_PLATFORM_IOS; |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 // The default group was not found in the list of groups. This study is not | 333 // The default group was not found in the list of groups. This study is not |
335 // valid. | 334 // valid. |
336 return false; | 335 return false; |
337 } | 336 } |
338 | 337 |
339 *total_probability = divisor; | 338 *total_probability = divisor; |
340 return true; | 339 return true; |
341 } | 340 } |
342 | 341 |
343 } // namespace chrome_variations | 342 } // namespace chrome_variations |
OLD | NEW |