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

Unified Diff: components/update_client/update_checker.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/update_checker.cc
diff --git a/components/update_client/update_checker.cc b/components/update_client/update_checker.cc
index 7ffcecc1f4737687f34aecf7912e9315f45e4a15..9496febee8543656cac568e35885cb338f9fd5f2 100644
--- a/components/update_client/update_checker.cc
+++ b/components/update_client/update_checker.cc
@@ -41,7 +41,7 @@ std::string SanitizeAp(const std::string& ap) {
// Returns true if at least one item requires network encryption.
bool IsEncryptionRequired(const std::vector<CrxUpdateItem*>& items) {
- for (const auto& item : items) {
+ for (auto* item : items) {
if (item->component.requires_network_encryption)
return true;
}
@@ -158,7 +158,7 @@ bool UpdateCheckerImpl::CheckForUpdates(
std::unique_ptr<std::vector<std::string>> ids_checked(
new std::vector<std::string>());
- for (auto crx : items_to_check)
+ for (auto* crx : items_to_check)
ids_checked->push_back(crx->id);
request_sender_.reset(new RequestSender(config_));
request_sender_->Send(

Powered by Google App Engine
This is Rietveld 408576698