Index: extensions/browser/event_router.cc |
diff --git a/extensions/browser/event_router.cc b/extensions/browser/event_router.cc |
index 0aeec38c377215c427099724562bd906ecc3dc53..649856d1ef65351beb62f64ff1208a718b5a4253 100644 |
--- a/extensions/browser/event_router.cc |
+++ b/extensions/browser/event_router.cc |
@@ -4,6 +4,7 @@ |
#include "extensions/browser/event_router.h" |
+#include <tuple> |
#include <utility> |
#include "base/atomic_sequence_num.h" |
@@ -95,11 +96,8 @@ struct EventRouter::ListenerProcess { |
: process(process), extension_id(extension_id) {} |
bool operator<(const ListenerProcess& that) const { |
- if (process < that.process) |
- return true; |
- if (process == that.process && extension_id < that.extension_id) |
- return true; |
- return false; |
+ return std::tie(process, extension_id) < |
+ std::tie(that.process, that.extension_id); |
} |
}; |