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

Unified Diff: content/browser/media/webrtc_identity_store_backend.cc

Issue 1462213002: Use std::tie() for operator< in content/ (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
« no previous file with comments | « content/browser/loader/global_routing_id.h ('k') | content/public/browser/desktop_media_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/media/webrtc_identity_store_backend.cc
diff --git a/content/browser/media/webrtc_identity_store_backend.cc b/content/browser/media/webrtc_identity_store_backend.cc
index 59ee8167e0738a3242f2a1a6f629ae8b1b389ff9..48e51e65394dfe48213dca0fd4d765ca7fb6c1a0 100644
--- a/content/browser/media/webrtc_identity_store_backend.cc
+++ b/content/browser/media/webrtc_identity_store_backend.cc
@@ -4,6 +4,8 @@
#include "content/browser/media/webrtc_identity_store_backend.h"
+#include <tuple>
+
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/memory/scoped_vector.h"
@@ -53,8 +55,8 @@ struct WebRTCIdentityStoreBackend::IdentityKey {
: origin(origin), identity_name(identity_name) {}
bool operator<(const IdentityKey& other) const {
- return origin < other.origin ||
- (origin == other.origin && identity_name < other.identity_name);
+ return std::tie(origin, identity_name) <
+ std::tie(other.origin, other.identity_name);
}
GURL origin;
« no previous file with comments | « content/browser/loader/global_routing_id.h ('k') | content/public/browser/desktop_media_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698