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

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

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase 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
« no previous file with comments | « services/shell/public/cpp/identity.typemap ('k') | services/shell/public/cpp/interface_binder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/identity_struct_traits.h
diff --git a/services/shell/public/cpp/identity_struct_traits.h b/services/shell/public/cpp/identity_struct_traits.h
deleted file mode 100644
index 46d9d5862e6b31a32e9f4d320f0d61211f80db6e..0000000000000000000000000000000000000000
--- a/services/shell/public/cpp/identity_struct_traits.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef SERVICES_SHELL_PUBLIC_CPP_IDENTITY_STRUCT_TRAITS_H_
-#define SERVICES_SHELL_PUBLIC_CPP_IDENTITY_STRUCT_TRAITS_H_
-
-#include "services/shell/public/cpp/identity.h"
-#include "services/shell/public/interfaces/connector.mojom.h"
-
-namespace mojo {
-
-template <>
-struct StructTraits<shell::mojom::IdentityDataView, shell::Identity> {
- static const std::string& name(const shell::Identity& identity) {
- return identity.name();
- }
- static const std::string& user_id(const shell::Identity& identity) {
- return identity.user_id();
- }
- static const std::string& instance(const shell::Identity& identity) {
- return identity.instance();
- }
- static bool Read(shell::mojom::IdentityDataView data, shell::Identity* out) {
- std::string name, user_id, instance;
- if (!data.ReadName(&name))
- return false;
-
- if (!data.ReadUserId(&user_id))
- return false;
-
- if (!data.ReadInstance(&instance))
- return false;
-
- *out = shell::Identity(name, user_id, instance);
- return true;
- }
-};
-
-} // namespace mojo
-
-#endif // SERVICES_SHELL_PUBLIC_CPP_IDENTITY_STRUCT_TRAITS_H_
« no previous file with comments | « services/shell/public/cpp/identity.typemap ('k') | services/shell/public/cpp/interface_binder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698