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

Side by Side Diff: content/browser/appcache/appcache_histograms.cc

Issue 344493002: Move all remaining appcache-related code to content namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
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 "webkit/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 8
9 namespace appcache { 9 namespace content {
10 10
11 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) { 11 static std::string OriginToCustomHistogramSuffix(const GURL& origin_url) {
12 if (origin_url.host() == "docs.google.com") 12 if (origin_url.host() == "docs.google.com")
13 return ".Docs"; 13 return ".Docs";
14 return std::string(); 14 return std::string();
15 } 15 }
16 16
17 void AppCacheHistograms::CountInitResult(InitResultType init_result) { 17 void AppCacheHistograms::CountInitResult(InitResultType init_result) {
18 UMA_HISTOGRAM_ENUMERATION( 18 UMA_HISTOGRAM_ENUMERATION(
19 "appcache.InitResult", 19 "appcache.InitResult",
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 UMA_HISTOGRAM_BOOLEAN("appcache.MissingManifestEntry", true); 144 UMA_HISTOGRAM_BOOLEAN("appcache.MissingManifestEntry", true);
145 } 145 }
146 146
147 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite( 147 void AppCacheHistograms::AddMissingManifestDetectedAtCallsite(
148 MissingManifestCallsiteType callsite) { 148 MissingManifestCallsiteType callsite) {
149 UMA_HISTOGRAM_ENUMERATION( 149 UMA_HISTOGRAM_ENUMERATION(
150 "appcache.MissingManifestDetectedAtCallsite", 150 "appcache.MissingManifestDetectedAtCallsite",
151 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES); 151 callsite, NUM_MISSING_MANIFEST_CALLSITE_TYPES);
152 } 152 }
153 153
154 } // namespace appcache 154 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698