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

Side by Side Diff: services/navigation/content_client/content_browser_client.cc

Issue 2118083002: ShellClient -> Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mus2
Patch Set: . Created 4 years, 5 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 | « services/catalog/catalog.cc ('k') | services/navigation/navigation.h » ('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 "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
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
OLDNEW
« no previous file with comments | « services/catalog/catalog.cc ('k') | services/navigation/navigation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698