OLD | NEW |
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/navigation/content_client/content_browser_client.h" | 5 #include "services/navigation/content_client/content_browser_client.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 content::BrowserContext* browser_context) { | 29 content::BrowserContext* browser_context) { |
30 // Unlike Chrome, where there are different browser contexts for each process, | 30 // Unlike Chrome, where there are different browser contexts for each process, |
31 // each with their own userid, here there is only one and we should reuse the | 31 // each with their own userid, here there is only one and we should reuse the |
32 // same userid as our own process to avoid having to create multiple shell | 32 // same userid as our own process to avoid having to create multiple shell |
33 // connections. | 33 // connections. |
34 return content::MojoShellConnection::GetForProcess()->GetIdentity().user_id(); | 34 return content::MojoShellConnection::GetForProcess()->GetIdentity().user_id(); |
35 } | 35 } |
36 | 36 |
37 void ContentBrowserClient::RegisterInProcessMojoApplications( | 37 void ContentBrowserClient::RegisterInProcessMojoApplications( |
38 StaticMojoApplicationMap* apps) { | 38 StaticMojoApplicationMap* apps) { |
39 content::MojoShellConnection::GetForProcess()->AddEmbeddedShellClient( | 39 content::MojoShellConnection::GetForProcess()->MergeService( |
40 base::WrapUnique(new Navigation)); | 40 base::WrapUnique(new Navigation)); |
41 } | 41 } |
42 | 42 |
43 } // namespace navigation | 43 } // namespace navigation |
OLD | NEW |