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

Unified Diff: services/service_manager/public/cpp/lib/identity.cc

Issue 2446313003: Revise InterfaceRegistry API to support filtering interfaces @ Bind() time. (Closed)
Patch Set: . Created 4 years, 2 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
Index: services/service_manager/public/cpp/lib/identity.cc
diff --git a/services/service_manager/public/cpp/lib/identity.cc b/services/service_manager/public/cpp/lib/identity.cc
index 241b3f48e024a411abc6394878dc843634aa1505..99d9e17ee69f714134f516cf5d2574e0de505473 100644
--- a/services/service_manager/public/cpp/lib/identity.cc
+++ b/services/service_manager/public/cpp/lib/identity.cc
@@ -40,4 +40,8 @@ bool Identity::operator==(const Identity& other) const {
other.user_id_ == user_id_;
}
+bool Identity::IsValid() const {
+ return IsValidName(name_) && base::IsValidGUID(user_id_);
+}
+
} // namespace service_manager

Powered by Google App Engine
This is Rietveld 408576698