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

Unified Diff: mash/webtest/webtest.cc

Issue 2179023004: Make Service own ServiceContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/webtest/webtest.h ('k') | media/mojo/services/mojo_media_application.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/webtest/webtest.cc
diff --git a/mash/webtest/webtest.cc b/mash/webtest/webtest.cc
index 835fac25c598d972e0aee4f44bbf94156bd8f5ed..c400aa66641afc80c3e03c7a4c9b017c4e0b81a7 100644
--- a/mash/webtest/webtest.cc
+++ b/mash/webtest/webtest.cc
@@ -157,15 +157,13 @@ void Webtest::RemoveWindow(views::Widget* window) {
base::MessageLoop::current()->QuitWhenIdle();
}
-void Webtest::OnStart(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) {
- connector_ = connector;
- tracing_.Initialize(connector, identity.name());
+void Webtest::OnStart(const shell::Identity& identity) {
+ tracing_.Initialize(connector(), identity.name());
- aura_init_.reset(new views::AuraInit(connector, "views_mus_resources.pak"));
+ aura_init_.reset(
+ new views::AuraInit(connector(), "views_mus_resources.pak"));
window_manager_connection_ =
- views::WindowManagerConnection::Create(connector, identity);
+ views::WindowManagerConnection::Create(connector(), identity);
}
bool Webtest::OnConnect(shell::Connection* connection) {
@@ -182,7 +180,7 @@ void Webtest::Launch(uint32_t what, mojom::LaunchMode how) {
}
navigation::mojom::ViewFactoryPtr view_factory;
- connector_->ConnectToInterface("exe:navigation", &view_factory);
+ connector()->ConnectToInterface("exe:navigation", &view_factory);
navigation::mojom::ViewPtr view;
navigation::mojom::ViewClientPtr view_client;
navigation::mojom::ViewClientRequest view_client_request =
« no previous file with comments | « mash/webtest/webtest.h ('k') | media/mojo/services/mojo_media_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698