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

Unified Diff: chrome/browser/extensions/api/dial/dial_registry.cc

Issue 2172043002: chrome/browser/extensions: 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
Index: chrome/browser/extensions/api/dial/dial_registry.cc
diff --git a/chrome/browser/extensions/api/dial/dial_registry.cc b/chrome/browser/extensions/api/dial/dial_registry.cc
index 9dc6318c31e858b7658a5466b2c1211f501d7fa7..6444f0c820feec8e1c2c7238952d641f8e130c93 100644
--- a/chrome/browser/extensions/api/dial/dial_registry.cc
+++ b/chrome/browser/extensions/api/dial/dial_registry.cc
@@ -157,7 +157,7 @@ bool DialRegistry::PruneExpiredDevices() {
bool pruned_device = false;
DeviceByLabelMap::iterator it = device_by_label_map_.begin();
while (it != device_by_label_map_.end()) {
- const auto& device = it->second;
+ auto* device = it->second;
if (IsDeviceExpired(*device)) {
VLOG(2) << "Device " << device->label() << " expired, removing";
const size_t num_erased_by_id =

Powered by Google App Engine
This is Rietveld 408576698