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

Unified Diff: content/browser/background_fetch/background_fetch_registration_id.cc

Issue 2777183002: Hook up the other Background Fetch Mojo methods with the system (Closed)
Patch Set: Hook up the other Background Fetch Mojo methods with the system Created 3 years, 9 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: content/browser/background_fetch/background_fetch_registration_id.cc
diff --git a/content/browser/background_fetch/background_fetch_registration_id.cc b/content/browser/background_fetch/background_fetch_registration_id.cc
index 18156b0d4ea03193ead71dcfbeca3efedf17b477..db7653bbb1bcc0ca051d49c2c8e78cf9ff0f3ab0 100644
--- a/content/browser/background_fetch/background_fetch_registration_id.cc
+++ b/content/browser/background_fetch/background_fetch_registration_id.cc
@@ -4,6 +4,8 @@
#include "content/browser/background_fetch/background_fetch_registration_id.h"
+#include <tuple>
+
#include "content/common/service_worker/service_worker_types.h"
namespace content {
@@ -44,9 +46,9 @@ bool BackgroundFetchRegistrationId::operator!=(
bool BackgroundFetchRegistrationId::operator<(
const BackgroundFetchRegistrationId& other) const {
- return service_worker_registration_id_ <
- other.service_worker_registration_id_ ||
- origin_ < other.origin_ || tag_ < other.tag_;
+ return std::tie(service_worker_registration_id_, origin_, tag_) <
+ std::tie(other.service_worker_registration_id_, other.origin_,
+ other.tag_);
}
bool BackgroundFetchRegistrationId::is_null() const {

Powered by Google App Engine
This is Rietveld 408576698