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

Unified Diff: chrome/browser/metrics/perf/cpu_identity.cc

Issue 2195503002: chrome/browser/metrics: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/perf/cpu_identity.cc
diff --git a/chrome/browser/metrics/perf/cpu_identity.cc b/chrome/browser/metrics/perf/cpu_identity.cc
index 0edbcde77edacd15c0ea281991515bea063de5b6..243300113e4fe292c57f1200248f1348db0c0ffb 100644
--- a/chrome/browser/metrics/perf/cpu_identity.cc
+++ b/chrome/browser/metrics/perf/cpu_identity.cc
@@ -77,9 +77,9 @@ std::string GetIntelUarch(const CPUIdentity& cpuid) {
std::string family_model =
base::StringPrintf("%02X_%02X", cpuid.family, cpuid.model);
const internal::IntelUarchTableEntry search_elem = {family_model.c_str(), ""};
- const auto bound = std::lower_bound(
- internal::kIntelUarchTable, internal::kIntelUarchTableEnd,
- search_elem, internal::IntelUarchTableCmp);
+ auto* bound = std::lower_bound(internal::kIntelUarchTable,
+ internal::kIntelUarchTableEnd, search_elem,
+ internal::IntelUarchTableCmp);
if (bound->family_model != family_model)
return std::string(); // Unknown uarch
return bound->uarch;
« no previous file with comments | « chrome/browser/metrics/leak_detector/leak_detector_controller_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698