| Index: chromeos/dbus/shill_service_client_stub.cc
|
| diff --git a/chromeos/dbus/shill_service_client_stub.cc b/chromeos/dbus/shill_service_client_stub.cc
|
| index 434c4ceadb00b9394cc7ace2f2f3b35bd64e51c9..7f03089bcde09dcdc748f7061a525f427ef99e8d 100644
|
| --- a/chromeos/dbus/shill_service_client_stub.cc
|
| +++ b/chromeos/dbus/shill_service_client_stub.cc
|
| @@ -106,10 +106,13 @@ void ShillServiceClientStub::SetProperty(const dbus::ObjectPath& service_path,
|
| return;
|
| }
|
| if (name == flimflam::kStateProperty) {
|
| - // If we connect to a service, then we move it to the top of the list in
|
| - // the manager client.
|
| + // If the service went into a connected state, then move it to the top of
|
| + // the list in the manager client.
|
| + // TODO(gauravsh): Generalize to sort services properly to allow for testing
|
| + // more complex scenarios.
|
| std::string state;
|
| - if (value.GetAsString(&state) && state == flimflam::kStateOnline) {
|
| + if (value.GetAsString(&state) && (state == flimflam::kStateOnline ||
|
| + state == flimflam::kStatePortal)) {
|
| ShillManagerClient* manager_client =
|
| DBusThreadManager::Get()->GetShillManagerClient();
|
| manager_client->GetTestInterface()->MoveServiceToIndex(
|
|
|