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

Unified Diff: athena/system/system_ui_impl.cc

Issue 585623003: [Athena] Make a quick power button tap suspend the device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
Index: athena/system/system_ui_impl.cc
diff --git a/athena/system/system_ui_impl.cc b/athena/system/system_ui_impl.cc
index 67076e56218e3cdfcc3daf2a5aeede1e4ea8822d..91877223d74ba4ac5b4f01587fb8ab356261fd59 100644
--- a/athena/system/system_ui_impl.cc
+++ b/athena/system/system_ui_impl.cc
@@ -76,7 +76,6 @@ class SystemUIImpl : public SystemUI {
public:
SystemUIImpl(scoped_refptr<base::TaskRunner> blocking_task_runner)
: orientation_controller_(new OrientationController()),
- power_button_controller_(new PowerButtonController),
background_container_(NULL),
system_modal_container_(NULL) {
orientation_controller_->InitWith(blocking_task_runner);
@@ -99,6 +98,8 @@ class SystemUIImpl : public SystemUI {
system_modal_container_ =
ScreenManager::Get()->CreateContainer(system_modal_params);
+ power_button_controller_.reset(
+ new PowerButtonController(system_modal_container_));
flackr 2014/09/19 14:45:29 This container doesn't seem to show above the logi
pkotwicz 2014/09/20 00:01:59 Thanks for catching this! I have added a new cont
background_controller_.reset(
new BackgroundController(background_container_));
}

Powered by Google App Engine
This is Rietveld 408576698