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

Unified Diff: components/update_client/action.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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: components/update_client/action.cc
diff --git a/components/update_client/action.cc b/components/update_client/action.cc
index c550b2f1c60a08529fcfad72b9bf4c17e37bd491..94cc2ee6c3755a037aab513d8cc98bd806b6c231 100644
--- a/components/update_client/action.cc
+++ b/components/update_client/action.cc
@@ -100,7 +100,7 @@ size_t ActionImpl::ChangeAllItemsState(CrxUpdateItem::State from,
CrxUpdateItem::State to) {
DCHECK(thread_checker_.CalledOnValidThread());
size_t count = 0;
- for (auto item : update_context_->update_items) {
+ for (auto* item : update_context_->update_items) {
if (item->state == from) {
ChangeItemState(item, to);
++count;

Powered by Google App Engine
This is Rietveld 408576698