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

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

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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/lib/connector_impl.cc ('k') | services/shell/public/cpp/lib/init_commandline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/public/cpp/lib/identity.cc
diff --git a/services/shell/public/cpp/lib/identity.cc b/services/shell/public/cpp/lib/identity.cc
index a3f12cbd63131a8b8d1e4f22c81eb97e636e8355..dc49424fbf0ab3086dec45658c65b8f59bf1f104 100644
--- a/services/shell/public/cpp/lib/identity.cc
+++ b/services/shell/public/cpp/lib/identity.cc
@@ -7,7 +7,7 @@
#include "base/guid.h"
#include "services/shell/public/cpp/names.h"
-namespace mojo {
+namespace shell {
Identity::Identity() {}
@@ -40,10 +40,14 @@ bool Identity::operator==(const Identity& other) const {
other.user_id_ == user_id_;
}
+} // namespace shell
+
+namespace mojo {
+
// static
shell::mojom::IdentityPtr
- TypeConverter<shell::mojom::IdentityPtr, Identity>::Convert(
- const Identity& input) {
+TypeConverter<shell::mojom::IdentityPtr, shell::Identity>::Convert(
+ const shell::Identity& input) {
shell::mojom::IdentityPtr identity(shell::mojom::Identity::New());
identity->name = input.name();
identity->user_id = input.user_id();
@@ -52,9 +56,10 @@ shell::mojom::IdentityPtr
}
// static
-Identity TypeConverter<Identity, shell::mojom::IdentityPtr>::Convert(
+shell::Identity
+TypeConverter<shell::Identity, shell::mojom::IdentityPtr>::Convert(
const shell::mojom::IdentityPtr& input) {
- return Identity(input->name, input->user_id, input->instance);
+ return shell::Identity(input->name, input->user_id, input->instance);
}
} // namespace mojo
« no previous file with comments | « services/shell/public/cpp/lib/connector_impl.cc ('k') | services/shell/public/cpp/lib/init_commandline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698