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

Unified Diff: content/browser/browser_context.cc

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index 28dbea9b77b5342ff9669787f5519cc4f8d39ffd..e506041e887442b37abb6b45ecd88b5f87415391 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -150,9 +150,9 @@ void SetDownloadManager(BrowserContext* context,
class BrowserContextServiceManagerConnectionHolder
: public base::SupportsUserData::Data {
public:
- BrowserContextServiceManagerConnectionHolder(
- std::unique_ptr<shell::Connection> connection,
- shell::mojom::ServiceRequest request)
+ BrowserContextServiceManagerConnectionHolder(
+ std::unique_ptr<service_manager::Connection> connection,
+ service_manager::mojom::ServiceRequest request)
: root_connection_(std::move(connection)),
service_manager_connection_(ServiceManagerConnection::Create(
std::move(request),
@@ -164,7 +164,7 @@ class BrowserContextServiceManagerConnectionHolder
}
private:
- std::unique_ptr<shell::Connection> root_connection_;
+ std::unique_ptr<service_manager::Connection> root_connection_;
std::unique_ptr<ServiceManagerConnection> service_manager_connection_;
DISALLOW_COPY_AND_ASSIGN(BrowserContextServiceManagerConnectionHolder);
@@ -435,12 +435,13 @@ void BrowserContext::Initialize(
// NOTE: Many unit tests create a TestBrowserContext without initializing
// Mojo or the global service manager connection.
- shell::mojom::ServicePtr service;
- shell::mojom::ServiceRequest service_request = mojo::GetProxy(&service);
+ service_manager::mojom::ServicePtr service;
+ service_manager::mojom::ServiceRequest service_request =
+ mojo::GetProxy(&service);
- shell::mojom::PIDReceiverPtr pid_receiver;
- shell::Connector::ConnectParams params(
- shell::Identity(kBrowserServiceName, new_id));
+ service_manager::mojom::PIDReceiverPtr pid_receiver;
+ service_manager::Connector::ConnectParams params(
+ service_manager::Identity(kBrowserServiceName, new_id));
params.set_client_process_connection(std::move(service),
mojo::GetProxy(&pid_receiver));
pid_receiver->SetPID(base::GetCurrentProcId());
@@ -489,7 +490,7 @@ BrowserContext* BrowserContext::GetBrowserContextForServiceUserId(
}
// static
-shell::Connector* BrowserContext::GetConnectorFor(
+service_manager::Connector* BrowserContext::GetConnectorFor(
BrowserContext* browser_context) {
ServiceManagerConnection* connection =
GetServiceManagerConnectionFor(browser_context);
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698