summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 18:40:46 +0000
committerasvitkine@chromium.org <asvitkine@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-19 18:40:46 +0000
commitf646080602203a48f56882e2548baabe82c28604 (patch)
tree656607c45b781b70a71b2b5a6721294790478956
parente5e64ebe4da2a7d8950c349c263fb1d79ba94429 (diff)
downloadchromium_src-f646080602203a48f56882e2548baabe82c28604.zip
chromium_src-f646080602203a48f56882e2548baabe82c28604.tar.gz
chromium_src-f646080602203a48f56882e2548baabe82c28604.tar.bz2
Minor cleanup to VariationsService.
BUG=none Review URL: https://codereview.chromium.org/118573005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241893 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/metrics/variations/variations_service.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/metrics/variations/variations_service.cc b/chrome/browser/metrics/variations/variations_service.cc
index d93c2f19..e2e4ce1 100644
--- a/chrome/browser/metrics/variations/variations_service.cc
+++ b/chrome/browser/metrics/variations/variations_service.cc
@@ -157,7 +157,7 @@ ResourceRequestsAllowedState ResourceRequestStateToHistogramValue(
case ResourceRequestAllowedNotifier::DISALLOWED_COMMAND_LINE_DISABLED:
return RESOURCE_REQUESTS_NOT_ALLOWED_COMMAND_LINE_DISABLED;
case ResourceRequestAllowedNotifier::ALLOWED:
- return RESOURCE_REQUESTS_ALLOWED;
+ return RESOURCE_REQUESTS_ALLOWED;
}
NOTREACHED();
return RESOURCE_REQUESTS_NOT_ALLOWED;
@@ -370,13 +370,12 @@ void VariationsService::FetchVariationsSeed() {
const ResourceRequestAllowedNotifier::State state =
resource_request_allowed_notifier_->GetResourceRequestsAllowedState();
+ RecordRequestsAllowedHistogram(ResourceRequestStateToHistogramValue(state));
if (state != ResourceRequestAllowedNotifier::ALLOWED) {
- RecordRequestsAllowedHistogram(ResourceRequestStateToHistogramValue(state));
DVLOG(1) << "Resource requests were not allowed. Waiting for notification.";
return;
}
- RecordRequestsAllowedHistogram(RESOURCE_REQUESTS_ALLOWED);
DoActualFetch();
}