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

Side by Side Diff: components/variations/variations_seed_processor.cc

Issue 23097007: Create variations target that depends on base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/variations/variations_seed_processor.h ('k') | components/variations/variations_seed_processor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698