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

Unified Diff: athena/system/system_ui_impl.cc

Issue 475533008: Revert of Rotate screen in response to accelerator or device orientation sensors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « athena/system/public/system_ui.h ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/system/system_ui_impl.cc
diff --git a/athena/system/system_ui_impl.cc b/athena/system/system_ui_impl.cc
index 5bd0e529c7abef1d4bfdd18e648cca4a5234a6e8..4b94d03a32c47e314b1d94131f802c5d4b6848e1 100644
--- a/athena/system/system_ui_impl.cc
+++ b/athena/system/system_ui_impl.cc
@@ -4,11 +4,8 @@
#include "athena/system/public/system_ui.h"
-#include "athena/system/device_socket_listener.h"
-#include "athena/system/orientation_controller.h"
#include "athena/system/power_button_controller.h"
#include "base/logging.h"
-#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
namespace athena {
@@ -18,16 +15,13 @@
class SystemUIImpl : public SystemUI {
public:
- SystemUIImpl(scoped_refptr<base::TaskRunner> io_task_runner)
- : orientation_controller_(new OrientationController(io_task_runner)),
- power_button_controller_(new PowerButtonController) {
+ SystemUIImpl() : power_button_controller_(new PowerButtonController) {
}
virtual ~SystemUIImpl() {
}
private:
- scoped_refptr<OrientationController> orientation_controller_;
scoped_ptr<PowerButtonController> power_button_controller_;
DISALLOW_COPY_AND_ASSIGN(SystemUIImpl);
@@ -36,10 +30,8 @@
} // namespace
// static
-SystemUI* SystemUI::Create(
- scoped_refptr<base::TaskRunner> io_task_runner) {
- DeviceSocketListener::CreateSocketManager(io_task_runner);
- instance = new SystemUIImpl(io_task_runner);
+SystemUI* SystemUI::Create() {
+ instance = new SystemUIImpl;
return instance;
}
@@ -48,7 +40,6 @@
CHECK(instance);
delete instance;
instance = NULL;
- DeviceSocketListener::ShutdownSocketManager();
}
} // namespace athena
« no previous file with comments | « athena/system/public/system_ui.h ('k') | ui/aura/test/test_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698