Commit 1bdeda31 authored by Alexei Svitkine's avatar Alexei Svitkine Committed by Commit Bot

Remove an unused MetricsServiceAccessor API.

Bug: None
Change-Id: If395ad9984c944efd609f7ea2c9c86ee3f904d71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2324882Reviewed-by: default avatarIlya Sherman <isherman@chromium.org>
Reviewed-by: default avatarOlivier Robin <olivierrobin@chromium.org>
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792693}
parent a718450d
......@@ -75,15 +75,6 @@ bool ChromeMetricsServiceAccessor::RegisterSyntheticMultiGroupFieldTrial(
g_browser_process->metrics_service(), trial_name, group_name_hashes);
}
// static
bool ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash(
uint32_t trial_name_hash,
base::StringPiece group_name) {
return metrics::MetricsServiceAccessor::
RegisterSyntheticFieldTrialWithNameHash(
g_browser_process->metrics_service(), trial_name_hash, group_name);
}
// static
void ChromeMetricsServiceAccessor::SetForceIsMetricsReportingEnabledPrefLookup(
bool value) {
......
......@@ -153,14 +153,6 @@ class ChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor {
base::StringPiece trial_name,
const std::vector<uint32_t>& group_name_hashes);
// Calls
// metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash()
// with g_browser_process->metrics_service(). See that function's declaration
// for details.
static bool RegisterSyntheticFieldTrialWithNameHash(
uint32_t trial_name_hash,
base::StringPiece group_name);
// Cover for function of same name in MetricsServiceAccssor. See
// ChromeMetricsServiceAccessor for details.
static void SetForceIsMetricsReportingEnabledPrefLookup(bool value);
......
......@@ -60,15 +60,6 @@ bool MetricsServiceAccessor::RegisterSyntheticMultiGroupFieldTrial(
return true;
}
// static
bool MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash(
MetricsService* metrics_service,
uint32_t trial_name_hash,
base::StringPiece group_name) {
return RegisterSyntheticFieldTrialWithNameAndGroupHash(
metrics_service, trial_name_hash, variations::HashName(group_name));
}
// static
bool MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameAndGroupHash(
MetricsService* metrics_service,
......
......@@ -51,13 +51,6 @@ class MetricsServiceAccessor {
base::StringPiece trial_name,
const std::vector<uint32_t>& group_name_hashes);
// Same as RegisterSyntheticFieldTrial above, but takes in the trial name as a
// hash rather than computing the hash from the string.
static bool RegisterSyntheticFieldTrialWithNameHash(
MetricsService* metrics_service,
uint32_t trial_name_hash,
base::StringPiece group_name);
// Same as RegisterSyntheticFieldTrial above, but takes in the trial and group
// names as hashes rather than computing those hashes from the strings.
static bool RegisterSyntheticFieldTrialWithNameAndGroupHash(
......
......@@ -39,13 +39,3 @@ bool IOSChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
return metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrial(
GetApplicationContext()->GetMetricsService(), trial_name, group_name);
}
// static
bool IOSChromeMetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash(
uint32_t trial_name_hash,
const std::string& group_name) {
return metrics::MetricsServiceAccessor::
RegisterSyntheticFieldTrialWithNameHash(
GetApplicationContext()->GetMetricsService(), trial_name_hash,
group_name);
}
......@@ -46,14 +46,6 @@ class IOSChromeMetricsServiceAccessor : public metrics::MetricsServiceAccessor {
static bool RegisterSyntheticFieldTrial(const std::string& trial_name,
const std::string& group_name);
// Calls
// metrics::MetricsServiceAccessor::RegisterSyntheticFieldTrialWithNameHash()
// with ApplicationContext's MetricsService. See that function's declaration
// for details.
static bool RegisterSyntheticFieldTrialWithNameHash(
uint32_t trial_name_hash,
const std::string& group_name);
DISALLOW_IMPLICIT_CONSTRUCTORS(IOSChromeMetricsServiceAccessor);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment