Index: chromeos/dbus/shill_manager_client_stub.cc |
diff --git a/chromeos/dbus/shill_manager_client_stub.cc b/chromeos/dbus/shill_manager_client_stub.cc |
index 640949a260f19fcc9d6ef5cdc992a02acd5ad6b1..b601eb201f37ea05afc8c0a8ac9783fe63851f87 100644 |
--- a/chromeos/dbus/shill_manager_client_stub.cc |
+++ b/chromeos/dbus/shill_manager_client_stub.cc |
@@ -523,7 +523,7 @@ void ShillManagerClientStub::CallNotifyObserversPropertyChanged( |
int delay_ms) { |
// Avoid unnecessary delayed task if we have no observers (e.g. during |
// initial setup). |
- if (observer_list_.size() == 0) |
+ if (!observer_list_.might_have_observers()) |
return; |
if (!CommandLine::ForCurrentProcess()->HasSwitch( |
chromeos::switches::kEnableStubInteractive)) { |