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

Unified Diff: ash/touch_hud/mus/touch_hud_application.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 | « ash/touch_hud/mus/touch_hud_application.h ('k') | components/filesystem/file_system_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/touch_hud/mus/touch_hud_application.cc
diff --git a/ash/touch_hud/mus/touch_hud_application.cc b/ash/touch_hud/mus/touch_hud_application.cc
index b2b8069b016505ce20367c5f44c4738693fcd9c8..03f0cf4971a4b33c2d6de7b6632a8950b0304e30 100644
--- a/ash/touch_hud/mus/touch_hud_application.cc
+++ b/ash/touch_hud/mus/touch_hud_application.cc
@@ -60,13 +60,10 @@ class TouchHudUI : public views::WidgetDelegateView,
TouchHudApplication::TouchHudApplication() : binding_(this) {}
TouchHudApplication::~TouchHudApplication() {}
-void TouchHudApplication::OnStart(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) {
- connector_ = connector;
- aura_init_.reset(new views::AuraInit(connector, "views_mus_resources.pak"));
+void TouchHudApplication::OnStart(const shell::Identity& identity) {
+ 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 TouchHudApplication::OnConnect(shell::Connection* connection) {
@@ -94,7 +91,7 @@ void TouchHudApplication::Launch(uint32_t what, mash::mojom::LaunchMode how) {
ui::Window* window =
window_manager_connection_.get()->NewWindow(properties);
params.native_widget = new views::NativeWidgetMus(
- widget_, connector_, window, ui::mojom::SurfaceType::DEFAULT);
+ widget_, connector(), window, ui::mojom::SurfaceType::DEFAULT);
widget_->Init(params);
widget_->Show();
} else {
« no previous file with comments | « ash/touch_hud/mus/touch_hud_application.h ('k') | components/filesystem/file_system_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698