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

Unified Diff: content/browser/browser_context.cc

Issue 1882423004: Move shell service to toplevel shell namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 | « components/resource_provider/resource_provider_unittest.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 cfa57462abda232875c8a74d9c9e094815ec1e96..f568fe02943a3e6df9f7cce8995976ba07bf68d7 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -127,8 +127,8 @@ class BrowserContextShellConnectionHolder
: public base::SupportsUserData::Data {
public:
BrowserContextShellConnectionHolder(
- std::unique_ptr<mojo::Connection> connection,
- mojo::shell::mojom::ShellClientRequest request)
+ std::unique_ptr<shell::Connection> connection,
+ shell::mojom::ShellClientRequest request)
: root_connection_(std::move(connection)),
shell_connection_(new BrowserShellConnection(std::move(request))) {}
~BrowserContextShellConnectionHolder() override {}
@@ -136,7 +136,7 @@ class BrowserContextShellConnectionHolder
BrowserShellConnection* shell_connection() { return shell_connection_.get(); }
private:
- std::unique_ptr<mojo::Connection> root_connection_;
+ std::unique_ptr<shell::Connection> root_connection_;
std::unique_ptr<BrowserShellConnection> shell_connection_;
DISALLOW_COPY_AND_ASSIGN(BrowserContextShellConnectionHolder);
@@ -383,13 +383,13 @@ void BrowserContext::Initialize(
// NOTE: Many unit tests create a TestBrowserContext without initializing
// Mojo or the global Mojo shell connection.
- mojo::shell::mojom::ShellClientPtr shell_client;
- mojo::shell::mojom::ShellClientRequest shell_client_request =
+ shell::mojom::ShellClientPtr shell_client;
+ shell::mojom::ShellClientRequest shell_client_request =
mojo::GetProxy(&shell_client);
- mojo::shell::mojom::PIDReceiverPtr pid_receiver;
- mojo::Connector::ConnectParams params(
- mojo::Identity(kBrowserMojoApplicationName, new_id));
+ shell::mojom::PIDReceiverPtr pid_receiver;
+ shell::Connector::ConnectParams params(
+ shell::Identity(kBrowserMojoApplicationName, new_id));
params.set_client_process_connection(std::move(shell_client),
mojo::GetProxy(&pid_receiver));
pid_receiver->SetPID(base::GetCurrentProcId());
@@ -434,7 +434,7 @@ const std::string& BrowserContext::GetMojoUserIdFor(
}
// static
-mojo::Connector* BrowserContext::GetMojoConnectorFor(
+shell::Connector* BrowserContext::GetMojoConnectorFor(
BrowserContext* browser_context) {
BrowserContextShellConnectionHolder* connection_holder =
static_cast<BrowserContextShellConnectionHolder*>(
« no previous file with comments | « components/resource_provider/resource_provider_unittest.cc ('k') | content/browser/browser_main_loop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698