Index: components/guest_view/browser/guest_view_manager.cc |
diff --git a/components/guest_view/browser/guest_view_manager.cc b/components/guest_view/browser/guest_view_manager.cc |
index 4c86e9d17439fad976ee75dc623b66492bfc72bc..c93f95307f3a629dbbcd407038a43c0a205626e8 100644 |
--- a/components/guest_view/browser/guest_view_manager.cc |
+++ b/components/guest_view/browser/guest_view_manager.cc |
@@ -3,6 +3,8 @@ |
// found in the LICENSE file. |
#include "components/guest_view/browser/guest_view_manager.h" |
+ |
+#include <tuple> |
#include "base/macros.h" |
#include "base/strings/stringprintf.h" |
@@ -476,10 +478,8 @@ |
bool GuestViewManager::ElementInstanceKey::operator<( |
const GuestViewManager::ElementInstanceKey& other) const { |
- if (embedder_process_id != other.embedder_process_id) |
- return embedder_process_id < other.embedder_process_id; |
- |
- return element_instance_id < other.element_instance_id; |
+ return std::tie(embedder_process_id, element_instance_id) < |
+ std::tie(other.embedder_process_id, other.element_instance_id); |
} |
bool GuestViewManager::ElementInstanceKey::operator==( |