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

Unified Diff: content/browser/geolocation/geolocation_dispatcher_host.cc

Issue 226103003: Log ErrorCode of Geoposition to UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/geolocation/geolocation_dispatcher_host.cc
diff --git a/content/browser/geolocation/geolocation_dispatcher_host.cc b/content/browser/geolocation/geolocation_dispatcher_host.cc
index edb2692f36f232894ace3e678a8a17d9ec4c43d8..013ace1aa830c574779b0b2c1eadb76f57b18bb2 100644
--- a/content/browser/geolocation/geolocation_dispatcher_host.cc
+++ b/content/browser/geolocation/geolocation_dispatcher_host.cc
@@ -148,6 +148,10 @@ bool GeolocationDispatcherHostImpl::OnMessageReceived(
void GeolocationDispatcherHostImpl::OnLocationUpdate(
const Geoposition& geoposition) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ UMA_HISTOGRAM_ENUMERATION(
+ "Geolocation.GeolocationDispatcherHostImpl.ErrorCode",
+ geoposition.error_code,
+ Geoposition::ERROR_CODE_LAST);
Ilya Sherman 2014/04/04 21:55:47 I recommend against re-using an existing enumerati
Ilya Sherman 2014/04/04 21:55:47 For enumerated histograms, the final argument shou
Michael van Ouwerkerk 2014/04/07 14:02:35 Done.
Michael van Ouwerkerk 2014/04/07 14:02:35 Done.
for (std::map<int, RendererGeolocationOptions>::iterator it =
geolocation_renderers_.begin();
it != geolocation_renderers_.end(); ++it) {
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | tools/metrics/histograms/histograms.xml » ('J')

Powered by Google App Engine
This is Rietveld 408576698