OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/browser/api/networking_private/networking_private_chromeos.
h" | 5 #include "extensions/browser/api/networking_private/networking_private_chromeos.
h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "chromeos/dbus/dbus_thread_manager.h" | 10 #include "chromeos/dbus/dbus_thread_manager.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 scoped_ptr<base::ListValue> network_properties_list = | 214 scoped_ptr<base::ListValue> network_properties_list = |
215 chromeos::network_util::TranslateNetworkListToONC( | 215 chromeos::network_util::TranslateNetworkListToONC( |
216 pattern, configured_only, visible_only, limit, false /* debugging */); | 216 pattern, configured_only, visible_only, limit, false /* debugging */); |
217 success_callback.Run(network_properties_list.Pass()); | 217 success_callback.Run(network_properties_list.Pass()); |
218 } | 218 } |
219 | 219 |
220 void NetworkingPrivateChromeOS::StartConnect( | 220 void NetworkingPrivateChromeOS::StartConnect( |
221 const std::string& guid, | 221 const std::string& guid, |
222 const VoidCallback& success_callback, | 222 const VoidCallback& success_callback, |
223 const FailureCallback& failure_callback) { | 223 const FailureCallback& failure_callback) { |
| 224 LOG(ERROR) << "*** QUICHE: " << __func__; |
224 std::string service_path, error; | 225 std::string service_path, error; |
225 if (!GetServicePathFromGuid(guid, &service_path, &error)) { | 226 if (!GetServicePathFromGuid(guid, &service_path, &error)) { |
226 failure_callback.Run(error); | 227 failure_callback.Run(error); |
227 return; | 228 return; |
228 } | 229 } |
229 | 230 |
230 const bool check_error_state = false; | 231 const bool check_error_state = false; |
231 NetworkHandler::Get()->network_connection_handler()->ConnectToNetwork( | 232 NetworkHandler::Get()->network_connection_handler()->ConnectToNetwork( |
232 service_path, success_callback, | 233 service_path, success_callback, |
233 base::Bind(&NetworkHandlerFailureCallback, failure_callback), | 234 base::Bind(&NetworkHandlerFailureCallback, failure_callback), |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 321 |
321 return true; | 322 return true; |
322 } | 323 } |
323 | 324 |
324 bool NetworkingPrivateChromeOS::RequestScan() { | 325 bool NetworkingPrivateChromeOS::RequestScan() { |
325 GetStateHandler()->RequestScan(); | 326 GetStateHandler()->RequestScan(); |
326 return true; | 327 return true; |
327 } | 328 } |
328 | 329 |
329 } // namespace extensions | 330 } // namespace extensions |
OLD | NEW |