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

Unified Diff: mojo/shell/background/background_shell.cc

Issue 1769163002: Add a instance groups to Connect(), and introduce an Identity struct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/shell/BUILD.gn ('k') | mojo/shell/connect_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/background/background_shell.cc
diff --git a/mojo/shell/background/background_shell.cc b/mojo/shell/background/background_shell.cc
index 1d31de7efd3949eda5086fa18ab771063f5fe066..24ec075f56b29abf4b2ca92379d47389a146ba4b 100644
--- a/mojo/shell/background/background_shell.cc
+++ b/mojo/shell/background/background_shell.cc
@@ -178,7 +178,8 @@ void BackgroundShell::Init(scoped_ptr<InitParams> init_params) {
mojom::ShellClientRequest BackgroundShell::CreateShellClientRequest(
const std::string& name) {
scoped_ptr<ConnectParams> params(new ConnectParams);
- params->set_target(Identity(name, std::string(), mojom::kRootUserID));
+ params->set_source(CreateShellIdentity());
+ params->set_target(Identity(name, mojom::kRootUserID));
mojom::ShellClientRequest request;
base::WaitableEvent signal(true, false);
thread_->message_loop()->task_runner()->PostTask(
« no previous file with comments | « mojo/shell/BUILD.gn ('k') | mojo/shell/connect_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698