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

Unified Diff: chrome/browser/safe_browsing/srt_fetcher_win.cc

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/srt_fetcher_win.cc
diff --git a/chrome/browser/safe_browsing/srt_fetcher_win.cc b/chrome/browser/safe_browsing/srt_fetcher_win.cc
index 58c74c942e8f03e35b7e9f925d57ade21cf0ddb5..3b679adce9ef4affbd0679528d2b4bcdfa6d2044 100644
--- a/chrome/browser/safe_browsing/srt_fetcher_win.cc
+++ b/chrome/browser/safe_browsing/srt_fetcher_win.cc
@@ -453,7 +453,7 @@ class UMAHistogramReporter {
}
void RecordBooleanHistogram(const std::string& name, bool sample) const {
- auto histogram =
+ auto* histogram =
base::BooleanHistogram::FactoryGet(FullName(name), kUmaHistogramFlag);
if (histogram)
histogram->AddBoolean(sample);
@@ -463,7 +463,7 @@ class UMAHistogramReporter {
Sample sample,
Sample boundary) const {
// See HISTOGRAM_ENUMERATION_WITH_FLAG for the parameters to |FactoryGet|.
- auto histogram = base::LinearHistogram::FactoryGet(
+ auto* histogram = base::LinearHistogram::FactoryGet(
FullName(name), 1, boundary, boundary + 1, kUmaHistogramFlag);
if (histogram)
histogram->Add(sample);
@@ -472,7 +472,7 @@ class UMAHistogramReporter {
void RecordLongTimesHistogram(const std::string& name,
const base::TimeDelta& sample) const {
// See UMA_HISTOGRAM_LONG_TIMES for the parameters to |FactoryTimeGet|.
- auto histogram = base::Histogram::FactoryTimeGet(
+ auto* histogram = base::Histogram::FactoryTimeGet(
FullName(name), base::TimeDelta::FromMilliseconds(1),
base::TimeDelta::FromHours(1), 100, kUmaHistogramFlag);
if (histogram)
@@ -481,14 +481,14 @@ class UMAHistogramReporter {
void RecordMemoryKBHistogram(const std::string& name, Sample sample) const {
// See UMA_HISTOGRAM_MEMORY_KB for the parameters to |FactoryGet|.
- auto histogram = base::Histogram::FactoryGet(FullName(name), 1000, 500000,
- 50, kUmaHistogramFlag);
+ auto* histogram = base::Histogram::FactoryGet(FullName(name), 1000, 500000,
+ 50, kUmaHistogramFlag);
if (histogram)
histogram->Add(sample);
}
void RecordSparseHistogram(const std::string& name, Sample sample) const {
- auto histogram =
+ auto* histogram =
base::SparseHistogram::FactoryGet(FullName(name), kUmaHistogramFlag);
if (histogram)
histogram->Add(sample);
@@ -497,7 +497,7 @@ class UMAHistogramReporter {
void RecordSparseHistogramCount(const std::string& name,
Sample sample,
int count) const {
- auto histogram =
+ auto* histogram =
base::SparseHistogram::FactoryGet(FullName(name), kUmaHistogramFlag);
if (histogram)
histogram->AddCount(sample, count);

Powered by Google App Engine
This is Rietveld 408576698