Commit 418dc6a2 authored by vmpstr's avatar vmpstr Committed by Commit bot

chrome/browser/metrics: Change auto to not deduce raw pointers.

This patch updates the code to prevent auto deducing to a raw pointer.

R=asvitkine@chromium.org
BUG=554600

Review-Url: https://codereview.chromium.org/2195503002
Cr-Commit-Position: refs/heads/master@{#408761}
parent 8da6b4aa
...@@ -83,7 +83,7 @@ TEST(LeakDetectorControllerTest, SingleReport) { ...@@ -83,7 +83,7 @@ TEST(LeakDetectorControllerTest, SingleReport) {
TEST(LeakDetectorControllerTest, SingleReportHistory) { TEST(LeakDetectorControllerTest, SingleReportHistory) {
MemoryLeakReportProto report; MemoryLeakReportProto report;
auto entry = report.add_alloc_breakdown_history(); auto* entry = report.add_alloc_breakdown_history();
InitializeRepeatedField({100, 200, 300}, entry->mutable_counts_by_size()); InitializeRepeatedField({100, 200, 300}, entry->mutable_counts_by_size());
entry->set_count_for_call_stack(15); entry->set_count_for_call_stack(15);
......
...@@ -77,9 +77,9 @@ std::string GetIntelUarch(const CPUIdentity& cpuid) { ...@@ -77,9 +77,9 @@ std::string GetIntelUarch(const CPUIdentity& cpuid) {
std::string family_model = std::string family_model =
base::StringPrintf("%02X_%02X", cpuid.family, cpuid.model); base::StringPrintf("%02X_%02X", cpuid.family, cpuid.model);
const internal::IntelUarchTableEntry search_elem = {family_model.c_str(), ""}; const internal::IntelUarchTableEntry search_elem = {family_model.c_str(), ""};
const auto bound = std::lower_bound( auto* bound = std::lower_bound(internal::kIntelUarchTable,
internal::kIntelUarchTable, internal::kIntelUarchTableEnd, internal::kIntelUarchTableEnd, search_elem,
search_elem, internal::IntelUarchTableCmp); internal::IntelUarchTableCmp);
if (bound->family_model != family_model) if (bound->family_model != family_model)
return std::string(); // Unknown uarch return std::string(); // Unknown uarch
return bound->uarch; return bound->uarch;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment