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

Side by Side Diff: content/browser/download/download_stats.cc

Issue 8203005: Implement chrome.experimental.downloads.onChanged (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: on_changed_stats_,OnChangedStat Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/download/download_stats.h" 5 #include "content/browser/download/download_stats.h"
6 6
7 #include "base/metrics/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "content/browser/download/interrupt_reasons.h" 9 #include "content/browser/download/interrupt_reasons.h"
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 } 223 }
224 224
225 void RecordOpensOutstanding(int size) { 225 void RecordOpensOutstanding(int size) {
226 UMA_HISTOGRAM_CUSTOM_COUNTS("Download.OpensOutstanding", 226 UMA_HISTOGRAM_CUSTOM_COUNTS("Download.OpensOutstanding",
227 size, 227 size,
228 0/*min*/, 228 0/*min*/,
229 (1 << 10)/*max*/, 229 (1 << 10)/*max*/,
230 64/*num_buckets*/); 230 64/*num_buckets*/);
231 } 231 }
232 232
233 void RecordOnChanged(int percent) {
234 UMA_HISTOGRAM_PERCENTAGE("Download.OnChanged", percent);
Randy Smith (Not in Mondays) 2011/10/18 21:15:32 I'd make this name a bit more detailed (Substantiv
235 }
236
233 } // namespace download_stats 237 } // namespace download_stats
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698