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

Unified Diff: ash/common/system/chromeos/network/network_list_md.cc

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase Created 3 years, 10 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: ash/common/system/chromeos/network/network_list_md.cc
diff --git a/ash/common/system/chromeos/network/network_list_md.cc b/ash/common/system/chromeos/network/network_list_md.cc
index 5a7adb4b71a1f98cb4fa45eb29644527810b028d..f415fad84b8428a45319371a9279921a56fdc665 100644
--- a/ash/common/system/chromeos/network/network_list_md.cc
+++ b/ash/common/system/chromeos/network/network_list_md.cc
@@ -304,7 +304,7 @@ void NetworkListViewMd::Update() {
NetworkStateHandler::NetworkStateList tether_network_list;
handler->GetTetherNetworkList(0 /* no limit */, &tether_network_list);
- for (const auto& tether_network : tether_network_list) {
+ for (const auto* tether_network : tether_network_list) {
network_list_.push_back(
base::MakeUnique<NetworkInfo>(tether_network->guid()));
}
@@ -329,7 +329,7 @@ void NetworkListViewMd::UpdateNetworks(
SCOPED_NET_LOG_IF_SLOW();
network_list_.clear();
const NetworkTypePattern pattern = delegate_->GetNetworkTypePattern();
- for (const auto& network : networks) {
+ for (const auto* network : networks) {
if (pattern.MatchesType(network->type()))
network_list_.push_back(base::MakeUnique<NetworkInfo>(network->guid()));
}
« no previous file with comments | « ash/common/system/chromeos/network/network_icon.cc ('k') | ash/common/system/chromeos/palette/palette_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698