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

Side by Side Diff: content/browser/service_worker/service_worker_histograms.cc

Issue 313273003: ServiceWorker: Add UMA for ServiceWorkerDiskCache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for nit Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/browser/service_worker/service_worker_histograms.h"
6
7 #include "base/metrics/histogram.h"
8
9 namespace content {
10
11 // static
12 void ServiceWorkerHistograms::CountInitDiskCacheResult(bool result) {
13 UMA_HISTOGRAM_BOOLEAN("ServiceWorker.DiskCache.InitResult", result);
14 }
15
16 // static
17 void ServiceWorkerHistograms::CountReadResponseResult(
18 ServiceWorkerHistograms::ReadResponseResult result) {
19 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.ReadResponseResult",
20 result, NUM_READ_RESPONSE_RESULT_TYPES);
21 }
22
23 // static
24 void ServiceWorkerHistograms::CountWriteResponseResult(
25 ServiceWorkerHistograms::WriteResponseResult result) {
26 UMA_HISTOGRAM_ENUMERATION("ServiceWorker.DiskCache.WriteResponseResult",
27 result, NUM_WRITE_RESPONSE_RESULT_TYPES);
28 }
29
30 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698