OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/shill_manager_client_stub.h" | 5 #include "chromeos/dbus/shill_manager_client_stub.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/chromeos/chromeos_version.h" | 8 #include "base/chromeos/chromeos_version.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 const std::string& device_serial, | 247 const std::string& device_serial, |
248 const std::string& data, | 248 const std::string& data, |
249 const StringCallback& callback, | 249 const StringCallback& callback, |
250 const ErrorCallback& error_callback) { | 250 const ErrorCallback& error_callback) { |
251 if (callback.is_null()) | 251 if (callback.is_null()) |
252 return; | 252 return; |
253 MessageLoop::current()->PostTask( | 253 MessageLoop::current()->PostTask( |
254 FROM_HERE, base::Bind(callback, "encrypted_data")); | 254 FROM_HERE, base::Bind(callback, "encrypted_data")); |
255 } | 255 } |
256 | 256 |
| 257 void ShillManagerClientStub::ConnectToBestServices( |
| 258 const base::Closure& callback, |
| 259 const ErrorCallback& error_callback) { |
| 260 } |
257 | 261 |
258 ShillManagerClient::TestInterface* ShillManagerClientStub::GetTestInterface() { | 262 ShillManagerClient::TestInterface* ShillManagerClientStub::GetTestInterface() { |
259 return this; | 263 return this; |
260 } | 264 } |
261 | 265 |
262 // ShillManagerClient::TestInterface overrides. | 266 // ShillManagerClient::TestInterface overrides. |
263 | 267 |
264 void ShillManagerClientStub::AddDevice(const std::string& device_path) { | 268 void ShillManagerClientStub::AddDevice(const std::string& device_path) { |
265 if (GetListProperty(flimflam::kDevicesProperty)->AppendIfNotPresent( | 269 if (GetListProperty(flimflam::kDevicesProperty)->AppendIfNotPresent( |
266 base::Value::CreateStringValue(device_path))) { | 270 base::Value::CreateStringValue(device_path))) { |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 std::string type; | 497 std::string type; |
494 properties->GetString(flimflam::kTypeProperty, &type); | 498 properties->GetString(flimflam::kTypeProperty, &type); |
495 if (TechnologyEnabled(type)) | 499 if (TechnologyEnabled(type)) |
496 new_service_list->Append((*iter)->DeepCopy()); | 500 new_service_list->Append((*iter)->DeepCopy()); |
497 } | 501 } |
498 } | 502 } |
499 return new_service_list; | 503 return new_service_list; |
500 } | 504 } |
501 | 505 |
502 } // namespace chromeos | 506 } // namespace chromeos |
OLD | NEW |