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

Unified Diff: chrome/browser/task_manager/sampling/shared_sampler_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/task_manager/sampling/shared_sampler_win.cc
diff --git a/chrome/browser/task_manager/sampling/shared_sampler_win.cc b/chrome/browser/task_manager/sampling/shared_sampler_win.cc
index 087acfe17bf4f379050b0db9c05534250b567e4d..14fbf5b5b6a0d55b40deb56ed68dad5f2509717b 100644
--- a/chrome/browser/task_manager/sampling/shared_sampler_win.cc
+++ b/chrome/browser/task_manager/sampling/shared_sampler_win.cc
@@ -398,8 +398,8 @@ std::unique_ptr<ProcessDataSnapshot> SharedSampler::CaptureSnapshot() {
snapshot->timestamp = base::TimeTicks::Now();
for (size_t offset = 0; offset < data_buffer.size(); ) {
- auto pi = reinterpret_cast<const SYSTEM_PROCESS_INFORMATION*>(
- data_buffer.data() + offset);
+ const auto* pi = reinterpret_cast<const SYSTEM_PROCESS_INFORMATION*>(
+ data_buffer.data() + offset);
// Validate that the offset is valid and all needed data is within
// the buffer boundary.
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_win.cc ('k') | chrome/browser/ui/android/page_info/certificate_chain_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698