| 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 "ash/system/network/network_info.h" | 5 #include "ash/system/network/network_info.h" |
| 6 | 6 |
| 7 namespace ash { | 7 namespace ash { |
| 8 | 8 |
| 9 NetworkInfo::NetworkInfo() | 9 NetworkInfo::NetworkInfo() |
| 10 : disable(false), | 10 : disable(false), |
| 11 highlight(false), | |
| 12 connected(false), | 11 connected(false), |
| 13 connecting(false), | 12 connecting(false), |
| 14 type(Type::UNKNOWN) {} | 13 type(Type::UNKNOWN) {} |
| 15 | 14 |
| 16 NetworkInfo::NetworkInfo(const std::string& guid) | 15 NetworkInfo::NetworkInfo(const std::string& guid) |
| 17 : guid(guid), | 16 : guid(guid), |
| 18 disable(false), | 17 disable(false), |
| 19 highlight(false), | |
| 20 connected(false), | 18 connected(false), |
| 21 connecting(false), | 19 connecting(false), |
| 22 type(Type::UNKNOWN) {} | 20 type(Type::UNKNOWN) {} |
| 23 | 21 |
| 24 NetworkInfo::~NetworkInfo() = default; | 22 NetworkInfo::~NetworkInfo() = default; |
| 25 | 23 |
| 26 bool NetworkInfo::operator==(const NetworkInfo& other) const { | 24 bool NetworkInfo::operator==(const NetworkInfo& other) const { |
| 27 return guid == other.guid && label == other.label && | 25 return guid == other.guid && label == other.label && |
| 28 tooltip == other.tooltip && image.BackedBySameObjectAs(other.image) && | 26 tooltip == other.tooltip && image.BackedBySameObjectAs(other.image) && |
| 29 disable == other.disable && highlight == other.highlight && | 27 disable == other.disable && connected == other.connected && |
| 30 connected == other.connected && connecting == other.connecting && | 28 connecting == other.connecting && type == other.type; |
| 31 type == other.type; | |
| 32 } | 29 } |
| 33 | 30 |
| 34 } // namespace ash | 31 } // namespace ash |
| OLD | NEW |