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

Unified Diff: services/ui/service.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 | « services/ui/service.h ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/service.cc
diff --git a/services/ui/service.cc b/services/ui/service.cc
index adea7304cc217c907765c54ee05cb30e75944802..88892a933ce5cc9cb1e4c7bce35735e4de25b45c 100644
--- a/services/ui/service.cc
+++ b/services/ui/service.cc
@@ -143,13 +143,11 @@ void Service::AddUserIfNecessary(const shell::Identity& remote_identity) {
window_server_->user_id_tracker()->AddUserId(remote_identity.user_id());
}
-void Service::OnStart(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) {
+void Service::OnStart(const shell::Identity& identity) {
platform_display_init_params_.surfaces_state = new SurfacesState;
base::PlatformThread::SetName("mus");
- tracing_.Initialize(connector, identity.name());
+ tracing_.Initialize(connector(), identity.name());
TRACE_EVENT0("mus", "Service::Initialize started");
test_config_ = base::CommandLine::ForCurrentProcess()->HasSwitch(
@@ -169,7 +167,7 @@ void Service::OnStart(shell::Connector* connector,
ui::test::SetUseOverrideRedirectWindowByDefault(true);
#endif
- InitializeResources(connector);
+ InitializeResources(connector());
#if defined(USE_OZONE)
// The ozone platform can provide its own event source. So initialize the
@@ -177,7 +175,7 @@ void Service::OnStart(shell::Connector* connector,
// Because GL libraries need to be initialized before entering the sandbox,
// in MUS, |InitializeForUI| will load the GL libraries.
ui::OzonePlatform::InitParams params;
- params.connector = connector;
+ params.connector = connector();
params.single_process = false;
ui::OzonePlatform::InitializeForUI(params);
« no previous file with comments | « services/ui/service.h ('k') | services/ui/test_wm/test_wm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698