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

Unified Diff: components/update_client/action_wait.cc

Issue 2110663002: components: Change auto to not deduce raw pointers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+one fix 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 | « components/update_client/action.cc ('k') | components/update_client/request_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/update_client/action_wait.cc
diff --git a/components/update_client/action_wait.cc b/components/update_client/action_wait.cc
index f18d7ccdbb313c7cca86054226fca4cd644ca68f..a4fddefb89c79a85ddb015ec63bd5f6d7629e194 100644
--- a/components/update_client/action_wait.cc
+++ b/components/update_client/action_wait.cc
@@ -36,7 +36,7 @@ void ActionWait::Run(UpdateContext* update_context, Callback callback) {
// control flow to the update engine, as the updates in this context are
// completed with an error.
while (!update_context->queue.empty()) {
- const auto item = FindUpdateItemById(update_context->queue.front());
+ auto* item = FindUpdateItemById(update_context->queue.front());
if (!item) {
item->error_category = static_cast<int>(ErrorCategory::kServiceError);
item->error_code = static_cast<int>(ServiceError::ERROR_WAIT);
« no previous file with comments | « components/update_client/action.cc ('k') | components/update_client/request_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698