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

Unified Diff: services/shell/connect_util.h

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/connect_params.cc ('k') | services/shell/connect_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/connect_util.h
diff --git a/services/shell/connect_util.h b/services/shell/connect_util.h
index 2d4f9382acf4d8f976a0ff449cb3cbbfd1332c3b..d5602251ac95a66692a15861f5d0f0597760446d 100644
--- a/services/shell/connect_util.h
+++ b/services/shell/connect_util.h
@@ -10,12 +10,11 @@
#include "services/shell/public/cpp/identity.h"
#include "services/shell/public/interfaces/connector.mojom.h"
-namespace mojo {
namespace shell {
class Shell;
-ScopedMessagePipeHandle ConnectToInterfaceByName(
+mojo::ScopedMessagePipeHandle ConnectToInterfaceByName(
Shell* shell,
const Identity& source,
const Identity& target,
@@ -27,24 +26,22 @@ template <typename Interface>
inline void ConnectToInterface(Shell* shell,
const Identity& source,
const Identity& target,
- InterfacePtr<Interface>* ptr) {
- ScopedMessagePipeHandle service_handle =
+ mojo::InterfacePtr<Interface>* ptr) {
+ mojo::ScopedMessagePipeHandle service_handle =
ConnectToInterfaceByName(shell, source, target, Interface::Name_);
- ptr->Bind(InterfacePtrInfo<Interface>(std::move(service_handle), 0u));
+ ptr->Bind(mojo::InterfacePtrInfo<Interface>(std::move(service_handle), 0u));
}
template <typename Interface>
inline void ConnectToInterface(Shell* shell,
const Identity& source,
const std::string& name,
- InterfacePtr<Interface>* ptr) {
- ScopedMessagePipeHandle service_handle = ConnectToInterfaceByName(
- shell, source, Identity(name, mojom::kInheritUserID),
- Interface::Name_);
- ptr->Bind(InterfacePtrInfo<Interface>(std::move(service_handle), 0u));
+ mojo::InterfacePtr<Interface>* ptr) {
+ mojo::ScopedMessagePipeHandle service_handle = ConnectToInterfaceByName(
+ shell, source, Identity(name, mojom::kInheritUserID), Interface::Name_);
+ ptr->Bind(mojo::InterfacePtrInfo<Interface>(std::move(service_handle), 0u));
}
} // namespace shell
-} // namespace mojo
#endif // SERVICES_SHELL_CONNECT_UTIL_H_
« no previous file with comments | « services/shell/connect_params.cc ('k') | services/shell/connect_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698