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

Unified Diff: mash/quick_launch/quick_launch_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 | « mash/quick_launch/quick_launch_application.h ('k') | mash/screenlock/screenlock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/quick_launch/quick_launch_application.cc
diff --git a/mash/quick_launch/quick_launch_application.cc b/mash/quick_launch/quick_launch_application.cc
index aa3aae688e862d22823f3cd5a7551308f1cfb77b..4f5b1d1ac5d2f67c1dccc47d98107ee5b53b2f31 100644
--- a/mash/quick_launch/quick_launch_application.cc
+++ b/mash/quick_launch/quick_launch_application.cc
@@ -38,7 +38,7 @@ class QuickLaunchUI : public views::WidgetDelegateView,
shell::Connector* connector,
catalog::mojom::CatalogPtr catalog)
: quick_launch_(quick_launch),
- connector_(connector),
+ connector_(connector),
prompt_(new views::Textfield),
catalog_(std::move(catalog)) {
set_background(views::Background::CreateStandardPanelBackground());
@@ -163,15 +163,13 @@ void QuickLaunchApplication::RemoveWindow(views::Widget* window) {
base::MessageLoop::current()->QuitWhenIdle();
}
-void QuickLaunchApplication::OnStart(shell::Connector* connector,
- const shell::Identity& identity,
- uint32_t id) {
- connector_ = connector;
- tracing_.Initialize(connector, identity.name());
+void QuickLaunchApplication::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);
Launch(mojom::kWindow, mojom::LaunchMode::MAKE_NEW);
}
@@ -189,11 +187,11 @@ void QuickLaunchApplication::Launch(uint32_t what, mojom::LaunchMode how) {
return;
}
catalog::mojom::CatalogPtr catalog;
- connector_->ConnectToInterface("mojo:catalog", &catalog);
+ connector()->ConnectToInterface("mojo:catalog", &catalog);
views::Widget* window = views::Widget::CreateWindowWithContextAndBounds(
- new QuickLaunchUI(this, connector_, std::move(catalog)), nullptr,
- gfx::Rect(10, 640, 0, 0));
+ new QuickLaunchUI(this, connector(), std::move(catalog)),
+ nullptr, gfx::Rect(10, 640, 0, 0));
window->Show();
windows_.push_back(window);
}
« no previous file with comments | « mash/quick_launch/quick_launch_application.h ('k') | mash/screenlock/screenlock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698