Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Side by Side Diff: extensions/browser/api/networking_private/networking_private_chromeos.cc

Issue 1426393003: NOT FOR REVIEW Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.5-split-wcss
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « components/wifi_sync/wifi_security_class_unittest.cc ('k') | extensions/shell/browser/shell_network_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698