| 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_macros.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "content/public/common/origin_util.h" | 9 #include "content/public/common/origin_util.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) { | 13 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) { |
| 14 if (origin_url.host_piece() == "docs.google.com") | 14 if (origin_url.host_piece() == "docs.google.com") |
| 15 return ".Docs"; | 15 return ".Docs"; |
| 16 return std::string(); | 16 return std::string(); |
| 17 } | 17 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 } | 150 } |
| 151 | 151 |
| 152 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( | 152 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( |
| 153 MissingManifestCallsiteType callsite) { | 153 MissingManifestCallsiteType callsite) { |
| 154 UMA_HISTOGRAM_ENUMERATION( | 154 UMA_HISTOGRAM_ENUMERATION( |
| 155 "appcache.MissingManifestDetectedAtCallsite", | 155 "appcache.MissingManifestDetectedAtCallsite", |
| 156 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); | 156 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); |
| 157 } | 157 } |
| 158 | 158 |
| 159 } // namespace content | 159 } // namespace content |
| OLD | NEW |