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

Unified Diff: base/metrics/field_trial.h

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/metrics/bucket_ranges_unittest.cc ('k') | base/metrics/field_trial.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/field_trial.h
diff --git a/base/metrics/field_trial.h b/base/metrics/field_trial.h
index 31ad354b95d449219de1ad31ee13a0e9b2653f0a..6c1d93ed0f16808b19cca8b11d7662a8f1b45ede 100644
--- a/base/metrics/field_trial.h
+++ b/base/metrics/field_trial.h
@@ -54,6 +54,9 @@
#ifndef BASE_METRICS_FIELD_TRIAL_H_
#define BASE_METRICS_FIELD_TRIAL_H_
+#include <stddef.h>
+#include <stdint.h>
+
#include <map>
#include <set>
#include <string>
@@ -61,6 +64,7 @@
#include "base/base_export.h"
#include "base/gtest_prod_util.h"
+#include "base/macros.h"
#include "base/memory/ref_counted.h"
#include "base/observer_list_threadsafe.h"
#include "base/synchronization/lock.h"
@@ -97,7 +101,7 @@ class BASE_EXPORT FieldTrial : public RefCounted<FieldTrial> {
// providers that support it. A given instance should always return the same
// value given the same input |trial_name| and |randomization_seed| values.
virtual double GetEntropyForTrial(const std::string& trial_name,
- uint32 randomization_seed) const = 0;
+ uint32_t randomization_seed) const = 0;
};
// A pair representing a Field Trial and its selected group.
@@ -398,7 +402,7 @@ class BASE_EXPORT FieldTrialList {
const int month,
const int day_of_month,
FieldTrial::RandomizationType randomization_type,
- uint32 randomization_seed,
+ uint32_t randomization_seed,
int* default_group_number);
// The Find() method can be used to test to see if a named trial was already
« no previous file with comments | « base/metrics/bucket_ranges_unittest.cc ('k') | base/metrics/field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698