OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 "chrome/browser/search/one_google_bar/one_google_bar_data.h" | 5 #include "chrome/browser/search/one_google_bar/one_google_bar_data.h" |
6 | 6 |
7 OneGoogleBarData::OneGoogleBarData() = default; | 7 OneGoogleBarData::OneGoogleBarData() = default; |
8 OneGoogleBarData::OneGoogleBarData(const OneGoogleBarData&) = default; | 8 OneGoogleBarData::OneGoogleBarData(const OneGoogleBarData&) = default; |
9 OneGoogleBarData::OneGoogleBarData(OneGoogleBarData&&) = default; | 9 OneGoogleBarData::OneGoogleBarData(OneGoogleBarData&&) = default; |
10 OneGoogleBarData::~OneGoogleBarData() = default; | 10 OneGoogleBarData::~OneGoogleBarData() = default; |
11 | 11 |
12 OneGoogleBarData& OneGoogleBarData::operator=(const OneGoogleBarData&) = | 12 OneGoogleBarData& OneGoogleBarData::operator=(const OneGoogleBarData&) = |
13 default; | 13 default; |
14 OneGoogleBarData& OneGoogleBarData::operator=(OneGoogleBarData&&) = default; | 14 OneGoogleBarData& OneGoogleBarData::operator=(OneGoogleBarData&&) = default; |
| 15 |
| 16 bool operator==(const OneGoogleBarData& lhs, const OneGoogleBarData& rhs) { |
| 17 return lhs.bar_html == rhs.bar_html && |
| 18 lhs.in_head_script == rhs.in_head_script && |
| 19 lhs.in_head_style == rhs.in_head_style && |
| 20 lhs.after_bar_script == rhs.after_bar_script && |
| 21 lhs.end_of_body_html == rhs.end_of_body_html && |
| 22 lhs.end_of_body_script == rhs.end_of_body_script; |
| 23 } |
| 24 |
| 25 bool operator!=(const OneGoogleBarData& lhs, const OneGoogleBarData& rhs) { |
| 26 return !(lhs == rhs); |
| 27 } |
OLD | NEW |