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

Side by Side Diff: mojo/shell/public/cpp/lib/connector_impl.cc

Issue 1770533002: Change userid from a uint32_t to a string guid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@33connector
Patch Set: . Created 4 years, 9 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
« no previous file with comments | « mojo/shell/public/cpp/lib/connection_impl.cc ('k') | mojo/shell/public/cpp/lib/shell_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "mojo/shell/public/cpp/lib/connector_impl.h" 5 #include "mojo/shell/public/cpp/lib/connector_impl.h"
6 6
7 #include "mojo/shell/public/cpp/lib/connection_impl.h" 7 #include "mojo/shell/public/cpp/lib/connection_impl.h"
8 8
9 namespace mojo { 9 namespace mojo {
10 10
11 Connector::ConnectParams::ConnectParams(const std::string& name) 11 Connector::ConnectParams::ConnectParams(const std::string& name)
12 : name_(name), 12 : name_(name),
13 user_id_(shell::mojom::Connector::kUserInherit) { 13 user_id_(shell::mojom::kInheritUserID) {
14 } 14 }
15 Connector::ConnectParams::~ConnectParams() {} 15 Connector::ConnectParams::~ConnectParams() {}
16 16
17 ConnectorImpl::ConnectorImpl(shell::mojom::ConnectorPtrInfo unbound_state) 17 ConnectorImpl::ConnectorImpl(shell::mojom::ConnectorPtrInfo unbound_state)
18 : unbound_state_(std::move(unbound_state)) {} 18 : unbound_state_(std::move(unbound_state)) {}
19 ConnectorImpl::ConnectorImpl(shell::mojom::ConnectorPtr connector) 19 ConnectorImpl::ConnectorImpl(shell::mojom::ConnectorPtr connector)
20 : connector_(std::move(connector)) { 20 : connector_(std::move(connector)) {
21 thread_checker_.reset(new base::ThreadChecker); 21 thread_checker_.reset(new base::ThreadChecker);
22 } 22 }
23 ConnectorImpl::~ConnectorImpl() {} 23 ConnectorImpl::~ConnectorImpl() {}
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 scoped_ptr<Connector> ConnectorImpl::Clone() { 72 scoped_ptr<Connector> ConnectorImpl::Clone() {
73 shell::mojom::ConnectorPtr connector; 73 shell::mojom::ConnectorPtr connector;
74 connector_->Clone(GetProxy(&connector)); 74 connector_->Clone(GetProxy(&connector));
75 return make_scoped_ptr( 75 return make_scoped_ptr(
76 new ConnectorImpl(connector.PassInterface())); 76 new ConnectorImpl(connector.PassInterface()));
77 } 77 }
78 78
79 } // namespace mojo 79 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/public/cpp/lib/connection_impl.cc ('k') | mojo/shell/public/cpp/lib/shell_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698