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

Unified Diff: chrome/browser/extensions/extension_service.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/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index f0b864a7518d77d29dff6bd069e67f74b429c301..0d1c2c1d3b019301994ac09fe9b88e5f02e868df 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -234,16 +234,16 @@ void ExtensionService::OnExternalProviderUpdateComplete(
const ScopedVector<ExternalInstallInfoFile>& file_extensions,
const std::set<std::string>& removed_extensions) {
// Update pending_extension_manager() with the new extensions first.
- for (const auto& extension : update_url_extensions)
+ for (auto* extension : update_url_extensions)
OnExternalExtensionUpdateUrlFound(*extension, false);
- for (const auto& extension : file_extensions)
+ for (auto* extension : file_extensions)
OnExternalExtensionFileFound(*extension);
#if DCHECK_IS_ON()
for (const std::string& id : removed_extensions) {
- for (const auto& extension : update_url_extensions)
+ for (auto* extension : update_url_extensions)
DCHECK_NE(id, extension->extension_id);
- for (const auto& extension : file_extensions)
+ for (auto* extension : file_extensions)
DCHECK_NE(id, extension->extension_id);
}
#endif
« no previous file with comments | « chrome/browser/extensions/extension_management.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698