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

Unified Diff: chromeos/network/shill_property_handler.h

Issue 13004024: Add ConnectToBestServices call when Certs are loaded (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Wait for scan to complete before calling ConnectToBest Created 7 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
Index: chromeos/network/shill_property_handler.h
diff --git a/chromeos/network/shill_property_handler.h b/chromeos/network/shill_property_handler.h
index 66678acab34c7e73e6119c8bf1ec00b6ed8e7d96..9c68c8f925f338f68811f41edd91855ed87ce5ee 100644
--- a/chromeos/network/shill_property_handler.h
+++ b/chromeos/network/shill_property_handler.h
@@ -107,6 +107,9 @@ class CHROMEOS_EXPORT ShillPropertyHandler
// Requests an immediate network scan.
void RequestScan() const;
+ // Calls Manager.ConnectToBestServices().
+ void ConnectToBestServices() const;
+
// Requests all properties for the service or device (called for new items).
void RequestProperties(ManagedState::ManagedType type,
const std::string& path);
@@ -116,6 +119,11 @@ class CHROMEOS_EXPORT ShillPropertyHandler
return observed_networks_.count(service_path) != 0;
}
+ // Returns a WeakPtr for passing to callbacks.
+ base::WeakPtr<ShillPropertyHandler> AsWeakPtr() {
+ return weak_ptr_factory_.GetWeakPtr();
+ }
+
// ShillPropertyChangedObserver overrides
virtual void OnPropertyChanged(const std::string& key,
const base::Value& value) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698