summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_histograms.cc
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 19:40:21 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 19:40:21 +0000
commitc4925d5805396a5e15ae4297b6173b5ed2610a93 (patch)
treee821154e001de7b637657f8f5b096000cb482be2 /webkit/appcache/appcache_histograms.cc
parent93330676dddfffc05a070df8e7b7e91fd5801ca2 (diff)
downloadchromium_src-c4925d5805396a5e15ae4297b6173b5ed2610a93.zip
chromium_src-c4925d5805396a5e15ae4297b6173b5ed2610a93.tar.gz
chromium_src-c4925d5805396a5e15ae4297b6173b5ed2610a93.tar.bz2
AppCache: If we can't read the existing data delete it and start over.
BUG=38360 TEST=some unit tests apply, but no new tests for this specifically Review URL: http://codereview.chromium.org/1562005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43371 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_histograms.cc')
-rw-r--r--webkit/appcache/appcache_histograms.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/webkit/appcache/appcache_histograms.cc b/webkit/appcache/appcache_histograms.cc
new file mode 100644
index 0000000..9907047
--- /dev/null
+++ b/webkit/appcache/appcache_histograms.cc
@@ -0,0 +1,18 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "webkit/appcache/appcache_histograms.h"
+
+#include "base/histogram.h"
+
+namespace appcache {
+
+// static
+void AppCacheHistograms::CountInitResult(InitResultType init_result) {
+ UMA_HISTOGRAM_ENUMERATION(
+ "appcache.InitResult",
+ init_result, NUM_INIT_RESULT_TYPES);
+}
+
+} // namespace appcache