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

Unified Diff: net/log/net_log_util.cc

Issue 2101863004: net: 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: net/log/net_log_util.cc
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc
index b9df667af18416f567e3994d3ccf10310f6eaed6..478fafc886719201fbd83c0ede0c8b72191b195f 100644
--- a/net/log/net_log_util.cc
+++ b/net/log/net_log_util.cc
@@ -519,12 +519,12 @@ NET_EXPORT void CreateNetLogEntriesForActiveObjects(
NetLog::ThreadSafeObserver* observer) {
// Put together the list of all requests.
std::vector<const URLRequest*> requests;
- for (const auto& context : contexts) {
+ for (auto* context : contexts) {
// May only be called on the context's thread.
DCHECK(context->CalledOnValidThread());
// Contexts should all be using the same NetLog.
DCHECK_EQ((*contexts.begin())->net_log(), context->net_log());
- for (const auto& request : *context->url_requests()) {
+ for (auto* request : *context->url_requests()) {
requests.push_back(request);
}
}
@@ -533,7 +533,7 @@ NET_EXPORT void CreateNetLogEntriesForActiveObjects(
std::sort(requests.begin(), requests.end(), RequestCreatedBefore);
// Create fake events.
- for (const auto& request : requests) {
+ for (auto* request : requests) {
NetLog::ParametersCallback callback =
base::Bind(&GetRequestStateAsValue, base::Unretained(request));
« no previous file with comments | « net/extras/sqlite/sqlite_persistent_cookie_store_unittest.cc ('k') | net/proxy/multi_threaded_proxy_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698