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

Unified Diff: services/service_manager/public/cpp/identity_struct_traits.h

Issue 2420253002: Rename shell namespace to service_manager (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/identity_struct_traits.h
diff --git a/services/service_manager/public/cpp/identity_struct_traits.h b/services/service_manager/public/cpp/identity_struct_traits.h
index 264f34bb72f3a67522bd28ef02516bde89df3b24..bfe0d9a3063ab37a550cf97e62a256b1828f4386 100644
--- a/services/service_manager/public/cpp/identity_struct_traits.h
+++ b/services/service_manager/public/cpp/identity_struct_traits.h
@@ -11,17 +11,20 @@
namespace mojo {
template <>
-struct StructTraits<shell::mojom::IdentityDataView, shell::Identity> {
- static const std::string& name(const shell::Identity& identity) {
+struct StructTraits<service_manager::mojom::IdentityDataView,
+ service_manager::Identity> {
+ static const std::string& name(const service_manager::Identity& identity) {
return identity.name();
}
- static const std::string& user_id(const shell::Identity& identity) {
+ static const std::string& user_id(const service_manager::Identity& identity) {
return identity.user_id();
}
- static const std::string& instance(const shell::Identity& identity) {
+ static const std::string& instance(
+ const service_manager::Identity& identity) {
return identity.instance();
}
- static bool Read(shell::mojom::IdentityDataView data, shell::Identity* out) {
+ static bool Read(service_manager::mojom::IdentityDataView data,
+ service_manager::Identity* out) {
std::string name, user_id, instance;
if (!data.ReadName(&name))
return false;
@@ -32,7 +35,7 @@ struct StructTraits<shell::mojom::IdentityDataView, shell::Identity> {
if (!data.ReadInstance(&instance))
return false;
- *out = shell::Identity(name, user_id, instance);
+ *out = service_manager::Identity(name, user_id, instance);
return true;
}
};
« no previous file with comments | « services/service_manager/public/cpp/identity.typemap ('k') | services/service_manager/public/cpp/interface_binder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698