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

Unified Diff: net/base/mime_sniffer.cc

Issue 515033: Cleanup histogram classes mixing SetFlags into FactoryGet arguments... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/connection_type_histograms.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mime_sniffer.cc
===================================================================
--- net/base/mime_sniffer.cc (revision 35277)
+++ net/base/mime_sniffer.cc (working copy)
@@ -213,9 +213,8 @@
static scoped_refptr<Histogram> UMASnifferHistogramGet(const char* name,
int array_size) {
scoped_refptr<Histogram> counter =
- LinearHistogram::LinearHistogramFactoryGet(
- name, 1, array_size - 1, array_size);
- counter->SetFlags(kUmaTargetedHistogramFlag);
+ LinearHistogram::FactoryGet(name, 1, array_size - 1, array_size,
+ Histogram::kUmaTargetedHistogramFlag);
return counter;
}
« no previous file with comments | « net/base/connection_type_histograms.cc ('k') | net/base/sdch_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698