OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "components/wifi_sync/wifi_config_delegate_chromeos.h" | 5 #include "components/wifi_sync/wifi_config_delegate_chromeos.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | |
10 #include "base/values.h" | 9 #include "base/values.h" |
11 #include "chromeos/network/managed_network_configuration_handler.h" | 10 #include "chromeos/network/managed_network_configuration_handler.h" |
| 11 #include "components/wifi_sync/wifi_config_observer_chromeos.h" |
12 #include "components/wifi_sync/wifi_credential.h" | 12 #include "components/wifi_sync/wifi_credential.h" |
13 | 13 |
14 namespace wifi_sync { | 14 namespace wifi_sync { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 void OnCreateConfigurationFailed( | 18 void OnCreateConfigurationFailed( |
19 const WifiCredential& wifi_credential, | 19 const WifiCredential& wifi_credential, |
20 const std::string& config_handler_error_message, | 20 const std::string& config_handler_error_message, |
21 scoped_ptr<base::DictionaryValue> error_data) { | 21 scoped_ptr<base::DictionaryValue> error_data) { |
(...skipping 30 matching lines...) Expand all Loading... |
52 | 52 |
53 managed_network_configuration_handler_ | 53 managed_network_configuration_handler_ |
54 ->CreateConfiguration( | 54 ->CreateConfiguration( |
55 user_hash_, | 55 user_hash_, |
56 *onc_properties, | 56 *onc_properties, |
57 chromeos::network_handler::StringResultCallback(), | 57 chromeos::network_handler::StringResultCallback(), |
58 base::Bind(OnCreateConfigurationFailed, network_credential)); | 58 base::Bind(OnCreateConfigurationFailed, network_credential)); |
59 } | 59 } |
60 | 60 |
61 } // namespace wifi_sync | 61 } // namespace wifi_sync |
OLD | NEW |