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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search/one_google_bar/one_google_bar_data.cc
diff --git a/chrome/browser/search/one_google_bar/one_google_bar_data.cc b/chrome/browser/search/one_google_bar/one_google_bar_data.cc
index eac69e8b66eae18bf42f59617b28266f3b474225..a5738e320fbbb22c9d530796836821c68ec520ef 100644
--- a/chrome/browser/search/one_google_bar/one_google_bar_data.cc
+++ b/chrome/browser/search/one_google_bar/one_google_bar_data.cc
@@ -12,3 +12,16 @@ OneGoogleBarData::~OneGoogleBarData() = default;
OneGoogleBarData& OneGoogleBarData::operator=(const OneGoogleBarData&) =
default;
OneGoogleBarData& OneGoogleBarData::operator=(OneGoogleBarData&&) = default;
+
+bool operator==(const OneGoogleBarData& lhs, const OneGoogleBarData& rhs) {
+ return lhs.bar_html == rhs.bar_html &&
+ lhs.in_head_script == rhs.in_head_script &&
+ lhs.in_head_style == rhs.in_head_style &&
+ lhs.after_bar_script == rhs.after_bar_script &&
+ lhs.end_of_body_html == rhs.end_of_body_html &&
+ lhs.end_of_body_script == rhs.end_of_body_script;
+}
+
+bool operator!=(const OneGoogleBarData& lhs, const OneGoogleBarData& rhs) {
+ return !(lhs == rhs);
+}

Powered by Google App Engine
This is Rietveld 408576698