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

Unified Diff: chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.cc

Issue 296963002: Show WiFi bootstrapping devices in devices page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wifi_impl1_reb
Patch Set: Created 6 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
« no previous file with comments | « no previous file | chrome/browser/resources/local_discovery/local_discovery.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.cc
diff --git a/chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.cc b/chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.cc
index 355d470e4e499dbe09e8394ec1c2b1c1737d4bca..601070fa10b2dd909af92677e01168f69202da9f 100644
--- a/chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.cc
+++ b/chrome/browser/local_discovery/wifi/wifi_manager_nonchromeos.cc
@@ -135,10 +135,8 @@ void WifiManagerNonChromeos::WifiServiceWrapper::Start() {
wifi_service_->SetEventObservers(
base::MessageLoopProxy::current(),
- base::Bind(&WifiServiceWrapper::OnNetworksChangedEvent,
- base::Unretained(this)),
- base::Bind(&WifiServiceWrapper::OnNetworkListChangedEvent,
- base::Unretained(this)));
+ base::Bind(&WifiServiceWrapper::OnNetworksChangedEvent, AsWeakPtr()),
+ base::Bind(&WifiServiceWrapper::OnNetworkListChangedEvent, AsWeakPtr()));
net::NetworkChangeNotifier::AddNetworkChangeObserver(this);
}
« no previous file with comments | « no previous file | chrome/browser/resources/local_discovery/local_discovery.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698