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

Side by Side Diff: services/service_manager/public/cpp/lib/connector_impl.cc

Issue 2419063003: Move services/shell to services/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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/shell/public/cpp/lib/connector_impl.h" 5 #include "services/service_manager/public/cpp/lib/connector_impl.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "services/shell/public/cpp/identity.h" 8 #include "services/service_manager/public/cpp/identity.h"
9 #include "services/shell/public/cpp/lib/connection_impl.h" 9 #include "services/service_manager/public/cpp/lib/connection_impl.h"
10 10
11 namespace shell { 11 namespace shell {
12 12
13 Connector::ConnectParams::ConnectParams(const Identity& target) 13 Connector::ConnectParams::ConnectParams(const Identity& target)
14 : target_(target) {} 14 : target_(target) {}
15 15
16 Connector::ConnectParams::ConnectParams(const std::string& name) 16 Connector::ConnectParams::ConnectParams(const std::string& name)
17 : target_(name, mojom::kInheritUserID) {} 17 : target_(name, mojom::kInheritUserID) {}
18 18
19 Connector::ConnectParams::~ConnectParams() {} 19 Connector::ConnectParams::~ConnectParams() {}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return true; 116 return true;
117 } 117 }
118 118
119 std::unique_ptr<Connector> Connector::Create(mojom::ConnectorRequest* request) { 119 std::unique_ptr<Connector> Connector::Create(mojom::ConnectorRequest* request) {
120 mojom::ConnectorPtr proxy; 120 mojom::ConnectorPtr proxy;
121 *request = mojo::GetProxy(&proxy); 121 *request = mojo::GetProxy(&proxy);
122 return base::MakeUnique<ConnectorImpl>(proxy.PassInterface()); 122 return base::MakeUnique<ConnectorImpl>(proxy.PassInterface());
123 } 123 }
124 124
125 } // namespace shell 125 } // namespace shell
OLDNEW
« no previous file with comments | « services/service_manager/public/cpp/lib/connector_impl.h ('k') | services/service_manager/public/cpp/lib/identity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698