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

Unified Diff: chromeos/components/tether/tether_host_fetcher.cc

Issue 2777343006: [CrOS Tether] TetherHostFetcher: When invoking callbacks, use a copy of the device list. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/components/tether/tether_host_fetcher.cc
diff --git a/chromeos/components/tether/tether_host_fetcher.cc b/chromeos/components/tether/tether_host_fetcher.cc
index 6f5427a188e040c12f95e00ab7320a94a5ea436b..f033cf92c55fb1ed17c4b54fdfc77fbcdc62129f 100644
--- a/chromeos/components/tether/tether_host_fetcher.cc
+++ b/chromeos/components/tether/tether_host_fetcher.cc
@@ -85,7 +85,7 @@ void TetherHostFetcher::OnRemoteDevicesLoaded(
if (request.device_id.empty()) {
DCHECK(!request.list_callback.is_null());
- request.list_callback.Run(remote_devices);
+ request.list_callback.Run(remote_devices_copy);
continue;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698