| 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/network/network_device_handler_impl.h" | 5 #include "chromeos/network/network_device_handler_impl.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chromeos/dbus/dbus_thread_manager.h" | 9 #include "chromeos/dbus/dbus_thread_manager.h" |
| 10 #include "chromeos/dbus/shill_device_client.h" | 10 #include "chromeos/dbus/shill_device_client.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 } else { | 62 } else { |
| 63 NET_LOG_EVENT("IPConfigs.Refresh Succeeded", ipconfig_path); | 63 NET_LOG_EVENT("IPConfigs.Refresh Succeeded", ipconfig_path); |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 void RefreshIPConfigsCallback( | 67 void RefreshIPConfigsCallback( |
| 68 const base::Closure& callback, | 68 const base::Closure& callback, |
| 69 const network_handler::ErrorCallback& error_callback, | 69 const network_handler::ErrorCallback& error_callback, |
| 70 const std::string& device_path, | 70 const std::string& device_path, |
| 71 const base::DictionaryValue& properties) { | 71 const base::DictionaryValue& properties) { |
| 72 const ListValue* ip_configs; | 72 const base::ListValue* ip_configs; |
| 73 if (!properties.GetListWithoutPathExpansion( | 73 if (!properties.GetListWithoutPathExpansion( |
| 74 shill::kIPConfigsProperty, &ip_configs)) { | 74 shill::kIPConfigsProperty, &ip_configs)) { |
| 75 NET_LOG_ERROR("RequestRefreshIPConfigs Failed", device_path); | 75 NET_LOG_ERROR("RequestRefreshIPConfigs Failed", device_path); |
| 76 network_handler::ShillErrorCallbackFunction( | 76 network_handler::ShillErrorCallbackFunction( |
| 77 "RequestRefreshIPConfigs Failed", | 77 "RequestRefreshIPConfigs Failed", |
| 78 device_path, | 78 device_path, |
| 79 error_callback, | 79 error_callback, |
| 80 std::string("Missing ") + shill::kIPConfigsProperty, ""); | 80 std::string("Missing ") + shill::kIPConfigsProperty, ""); |
| 81 return; | 81 return; |
| 82 } | 82 } |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 dbus::ObjectPath(device_path), | 239 dbus::ObjectPath(device_path), |
| 240 old_pin, | 240 old_pin, |
| 241 new_pin, | 241 new_pin, |
| 242 callback, | 242 callback, |
| 243 base::Bind(&HandleShillCallFailure, device_path, error_callback)); | 243 base::Bind(&HandleShillCallFailure, device_path, error_callback)); |
| 244 } | 244 } |
| 245 | 245 |
| 246 NetworkDeviceHandlerImpl::NetworkDeviceHandlerImpl() {} | 246 NetworkDeviceHandlerImpl::NetworkDeviceHandlerImpl() {} |
| 247 | 247 |
| 248 } // namespace chromeos | 248 } // namespace chromeos |
| OLD | NEW |