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

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

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 #ifndef CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_
6 #define CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/metrics/field_trial.h" 12 #include "base/metrics/field_trial.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "base/version.h" 14 #include "base/version.h"
15 #include "chrome/browser/metrics/proto/study.pb.h" 15 #include "components/variations/proto/study.pb.h"
16 #include "chrome/browser/metrics/proto/trials_seed.pb.h" 16 #include "components/variations/proto/trials_seed.pb.h"
17 17
18 namespace chrome_variations { 18 namespace chrome_variations {
19 19
20 // Helper class to instantiate field trials from a variations seed. 20 // Helper class to instantiate field trials from a variations seed.
21 class VariationsSeedProcessor { 21 class VariationsSeedProcessor {
22 public: 22 public:
23 VariationsSeedProcessor(); 23 VariationsSeedProcessor();
24 virtual ~VariationsSeedProcessor(); 24 virtual ~VariationsSeedProcessor();
25 25
26 // Creates field trials from the specified variations |seed|, based on the 26 // Creates field trials from the specified variations |seed|, based on the
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Validates the sanity of |study| and computes the total probability. 86 // Validates the sanity of |study| and computes the total probability.
87 bool ValidateStudyAndComputeTotalProbability( 87 bool ValidateStudyAndComputeTotalProbability(
88 const Study& study, 88 const Study& study,
89 base::FieldTrial::Probability* total_probability); 89 base::FieldTrial::Probability* total_probability);
90 90
91 DISALLOW_COPY_AND_ASSIGN(VariationsSeedProcessor); 91 DISALLOW_COPY_AND_ASSIGN(VariationsSeedProcessor);
92 }; 92 };
93 93
94 } // namespace chrome_variations 94 } // namespace chrome_variations
95 95
96 #endif // CHROME_BROWSER_METRICS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_ 96 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SEED_PROCESSOR_H_
OLDNEW
« no previous file with comments | « components/variations/variations_associated_data_unittest.cc ('k') | components/variations/variations_seed_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698