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

Unified Diff: mojo/shell/connect_params.cc

Issue 1719193003: Add a user id parameter to connections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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 | « mojo/shell/connect_params.h ('k') | mojo/shell/connect_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_params.cc
diff --git a/mojo/shell/connect_params.cc b/mojo/shell/connect_params.cc
index 92d1a877bf03ec7970f320c8bcd43e4a866a3eea..ec4e7225d72461417cc8e25948319068079b1910 100644
--- a/mojo/shell/connect_params.cc
+++ b/mojo/shell/connect_params.cc
@@ -11,21 +11,13 @@
namespace mojo {
namespace shell {
- ConnectParams::ConnectParams() {}
+ConnectParams::ConnectParams() {}
- ConnectParams::~ConnectParams() {}
-
- void ConnectParams::SetSource(ApplicationInstance* source) {
- if (!source) {
- source_ = Identity();
- return;
- }
-
- source_ = source->identity();
-}
+ConnectParams::~ConnectParams() {}
void ConnectParams::SetTargetURL(const GURL& target_url) {
- target_ = Identity(target_url, target_.qualifier(), target_.filter());
+ target_ = Identity(target_url, target_.qualifier(),
+ mojom::Shell::kUserInherit, target_.filter());
}
} // namespace shell
« no previous file with comments | « mojo/shell/connect_params.h ('k') | mojo/shell/connect_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698