OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/appcache/appcache_histograms.h" | 5 #include "content/browser/appcache/appcache_histograms.h" |
6 | 6 |
7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "base/metrics/histogram_macros.h" |
8 #include "content/public/common/origin_util.h" | 9 #include "content/public/common/origin_util.h" |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) { | 13 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) { |
13 if (origin_url.host_piece() == "docs.google.com") | 14 if (origin_url.host_piece() == "docs.google.com") |
14 return ".Docs"; | 15 return ".Docs"; |
15 return std::string(); | 16 return std::string(); |
16 } | 17 } |
17 | 18 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 } | 150 } |
150 | 151 |
151 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( | 152 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( |
152 MissingManifestCallsiteType callsite) { | 153 MissingManifestCallsiteType callsite) { |
153 UMA_HISTOGRAM_ENUMERATION( | 154 UMA_HISTOGRAM_ENUMERATION( |
154 "appcache.MissingManifestDetectedAtCallsite", | 155 "appcache.MissingManifestDetectedAtCallsite", |
155 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); | 156 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); |
156 } | 157 } |
157 | 158 |
158 } // namespace content | 159 } // namespace content |
OLD | NEW |