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

Unified Diff: mojo/shell/identity.cc

Issue 1714753002: 7/ Eliminate on_application_end from ConnectParams (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client_request
Patch Set: . Created 4 years, 10 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
« no previous file with comments | « mojo/shell/identity.h ('k') | mojo/shell/standalone/context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/identity.cc
diff --git a/mojo/shell/identity.cc b/mojo/shell/identity.cc
index c0e12fb3b9a4536c400b4b21268fc2b75590c63d..2c05b3f7722460a95b261eb17791a96177d1fd9b 100644
--- a/mojo/shell/identity.cc
+++ b/mojo/shell/identity.cc
@@ -53,6 +53,11 @@ bool Identity::operator<(const Identity& other) const {
return qualifier_ < other.qualifier_;
}
+bool Identity::operator==(const Identity& other) const {
+ return other.url_ == url_ && other.qualifier_ == qualifier_ &&
+ other.filter_ == filter_;
+}
+
Identity CreateShellIdentity() {
return Identity(GURL("mojo://shell/"), std::string(),
GetPermissiveCapabilityFilter());
« no previous file with comments | « mojo/shell/identity.h ('k') | mojo/shell/standalone/context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698