| 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 "components/wifi/network_properties.h" | 5 #include "components/wifi/network_properties.h" | 
| 6 | 6 | 
| 7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" | 
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" | 
| 9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" | 
| 10 #include "components/onc/onc_constants.h" | 10 #include "components/onc/onc_constants.h" | 
| 11 | 11 | 
| 12 namespace wifi { | 12 namespace wifi { | 
| 13 | 13 | 
| 14 NetworkProperties::NetworkProperties() | 14 NetworkProperties::NetworkProperties() | 
| 15     : connection_state(onc::connection_state::kNotConnected), | 15     : connection_state(onc::connection_state::kNotConnected), | 
| 16       security(onc::wifi::kNone), | 16       security(onc::wifi::kSecurityNone), | 
| 17       signal_strength(0), | 17       signal_strength(0), | 
| 18       auto_connect(false), | 18       auto_connect(false), | 
| 19       frequency(kFrequencyUnknown) { | 19       frequency(kFrequencyUnknown) { | 
| 20 } | 20 } | 
| 21 | 21 | 
| 22 NetworkProperties::~NetworkProperties() { | 22 NetworkProperties::~NetworkProperties() { | 
| 23 } | 23 } | 
| 24 | 24 | 
| 25 scoped_ptr<base::DictionaryValue> NetworkProperties::ToValue( | 25 scoped_ptr<base::DictionaryValue> NetworkProperties::ToValue( | 
| 26     bool network_list) const { | 26     bool network_list) const { | 
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 112   if (l.type == r.type) | 112   if (l.type == r.type) | 
| 113     return l.guid < r.guid; | 113     return l.guid < r.guid; | 
| 114   if (l.type == onc::network_type::kEthernet) | 114   if (l.type == onc::network_type::kEthernet) | 
| 115     return true; | 115     return true; | 
| 116   if (r.type == onc::network_type::kEthernet) | 116   if (r.type == onc::network_type::kEthernet) | 
| 117     return false; | 117     return false; | 
| 118   return l.type > r.type; | 118   return l.type > r.type; | 
| 119 } | 119 } | 
| 120 | 120 | 
| 121 }  // namespace wifi | 121 }  // namespace wifi | 
| OLD | NEW | 
|---|