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

Unified Diff: components/guest_view/browser/guest_view_manager.cc

Issue 1456263005: Revert of Use std::tie() for operator< in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: 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 c93f95307f3a629dbbcd407038a43c0a205626e8..4c86e9d17439fad976ee75dc623b66492bfc72bc 100644
--- a/components/guest_view/browser/guest_view_manager.cc
+++ b/components/guest_view/browser/guest_view_manager.cc
@@ -3,8 +3,6 @@
// 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"
@@ -478,8 +476,10 @@
bool GuestViewManager::ElementInstanceKey::operator<(
const GuestViewManager::ElementInstanceKey& other) const {
- return std::tie(embedder_process_id, element_instance_id) <
- std::tie(other.embedder_process_id, other.element_instance_id);
+ if (embedder_process_id != other.embedder_process_id)
+ return embedder_process_id < other.embedder_process_id;
+
+ return element_instance_id < other.element_instance_id;
}
bool GuestViewManager::ElementInstanceKey::operator==(
« no previous file with comments | « components/content_settings/core/browser/content_settings_origin_identifier_value_map.cc ('k') | components/mus/ws/ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698