OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/dbus/fake_shill_manager_client.h" | 5 #include "chromeos/dbus/fake_shill_manager_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
942 const DictionaryValueCallback& callback) const { | 942 const DictionaryValueCallback& callback) const { |
943 callback.Run(DBUS_METHOD_CALL_SUCCESS, stub_geo_networks_); | 943 callback.Run(DBUS_METHOD_CALL_SUCCESS, stub_geo_networks_); |
944 } | 944 } |
945 | 945 |
946 void FakeShillManagerClient::CallNotifyObserversPropertyChanged( | 946 void FakeShillManagerClient::CallNotifyObserversPropertyChanged( |
947 const std::string& property) { | 947 const std::string& property) { |
948 // Avoid unnecessary delayed task if we have no observers (e.g. during | 948 // Avoid unnecessary delayed task if we have no observers (e.g. during |
949 // initial setup). | 949 // initial setup). |
950 if (!observer_list_.might_have_observers()) | 950 if (!observer_list_.might_have_observers()) |
951 return; | 951 return; |
952 | |
Ryan Hansberry
2017/05/23 01:14:29
Please remove.
lesliewatkins
2017/05/26 23:49:32
Done.
| |
952 base::ThreadTaskRunnerHandle::Get()->PostTask( | 953 base::ThreadTaskRunnerHandle::Get()->PostTask( |
953 FROM_HERE, | 954 FROM_HERE, |
954 base::Bind(&FakeShillManagerClient::NotifyObserversPropertyChanged, | 955 base::Bind(&FakeShillManagerClient::NotifyObserversPropertyChanged, |
955 weak_ptr_factory_.GetWeakPtr(), property)); | 956 weak_ptr_factory_.GetWeakPtr(), property)); |
956 } | 957 } |
957 | 958 |
958 void FakeShillManagerClient::NotifyObserversPropertyChanged( | 959 void FakeShillManagerClient::NotifyObserversPropertyChanged( |
959 const std::string& property) { | 960 const std::string& property) { |
960 VLOG(1) << "NotifyObserversPropertyChanged: " << property; | 961 VLOG(1) << "NotifyObserversPropertyChanged: " << property; |
961 base::Value* value = NULL; | 962 base::Value* value = NULL; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1228 LOG(WARNING) << "Invalid state: " << state << " for " << type; | 1229 LOG(WARNING) << "Invalid state: " << state << " for " << type; |
1229 result = shill::kStateIdle; | 1230 result = shill::kStateIdle; |
1230 } | 1231 } |
1231 } | 1232 } |
1232 VLOG(1) << "Initial state for: " << type << " = " << result | 1233 VLOG(1) << "Initial state for: " << type << " = " << result |
1233 << " Enabled: " << *enabled; | 1234 << " Enabled: " << *enabled; |
1234 return result; | 1235 return result; |
1235 } | 1236 } |
1236 | 1237 |
1237 } // namespace chromeos | 1238 } // namespace chromeos |
OLD | NEW |