diff options
author | mvanouwerkerk@chromium.org <mvanouwerkerk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-17 03:12:42 +0000 |
---|---|---|
committer | mvanouwerkerk@chromium.org <mvanouwerkerk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-10-17 03:12:42 +0000 |
commit | 3240c284636b9a52150dd01185ee17c1afe006b5 (patch) | |
tree | c4f72389803ed1a8e1809b3933c11c5652f8c360 /content/browser/geolocation/network_location_request.cc | |
parent | 5f0a8ee7cedb10313a956caa7a6414928e7e39e6 (diff) | |
download | chromium_src-3240c284636b9a52150dd01185ee17c1afe006b5.zip chromium_src-3240c284636b9a52150dd01185ee17c1afe006b5.tar.gz chromium_src-3240c284636b9a52150dd01185ee17c1afe006b5.tar.bz2 |
Geolocation: log the number of wifi access points used to determine location.
Review URL: https://codereview.chromium.org/26482003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229024 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/geolocation/network_location_request.cc')
-rw-r--r-- | content/browser/geolocation/network_location_request.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/browser/geolocation/network_location_request.cc b/content/browser/geolocation/network_location_request.cc index 9418a3f..41f3cea1 100644 --- a/content/browser/geolocation/network_location_request.cc +++ b/content/browser/geolocation/network_location_request.cc @@ -58,6 +58,14 @@ void RecordUmaResponseCode(int code) { code); } +void RecordUmaAccessPoints(int count) { + const int min = 0; + const int max = 10; + const int buckets = 11; + UMA_HISTOGRAM_CUSTOM_COUNTS("Geolocation.NetworkLocationRequest.AccessPoints", + count, min, max, buckets); +} + // Local functions // Creates the request url to send to the server. GURL FormRequestURL(const GURL& url); @@ -107,6 +115,7 @@ bool NetworkLocationRequest::MakeRequest(const string16& access_token, const WifiData& wifi_data, const base::Time& timestamp) { RecordUmaEvent(NETWORK_LOCATION_REQUEST_EVENT_REQUEST_START); + RecordUmaAccessPoints(wifi_data.access_point_data.size()); if (url_fetcher_ != NULL) { DVLOG(1) << "NetworkLocationRequest : Cancelling pending request"; RecordUmaEvent(NETWORK_LOCATION_REQUEST_EVENT_REQUEST_CANCEL); |