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

Side by Side Diff: chrome/browser/search/one_google_bar/one_google_bar_data.cc

Issue 2811353002: Local NTP: Introduce OneGoogleBarService (Closed)
Patch Set: fix memleak Created 3 years, 8 months 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 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698