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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_aura.cc

Issue 8402002: Reenable triggering of screen rotations by sensors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years, 1 month 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: chrome/browser/ui/views/frame/browser_frame_aura.cc
diff --git a/chrome/browser/ui/views/frame/browser_frame_aura.cc b/chrome/browser/ui/views/frame/browser_frame_aura.cc
index 3b55088a589f1215d806fcc6c988b61814160c86..a5e8246cdcce329fb039f1059876216288aa5698 100644
--- a/chrome/browser/ui/views/frame/browser_frame_aura.cc
+++ b/chrome/browser/ui/views/frame/browser_frame_aura.cc
@@ -20,6 +20,10 @@
#include "ui/gfx/font.h"
#include "views/background.h"
+#if defined(TOUCH_UI)
+#include "chrome/browser/ui/touch/sensors/screen_orientation_listener.h"
+#endif
+
namespace {
// The content left/right images have a shadow built into them.
@@ -170,6 +174,11 @@ BrowserFrameAura::BrowserFrameAura(BrowserFrame* browser_frame,
// Background only needed for Aura-style windows.
browser_view_->set_background(new ToolbarBackground(browser_view));
}
+
+#if defined(TOUCH_UI)
+ // Ensure that the screen orientation listener singleton is initialized.
+ ScreenOrientationListener::GetInstance();
+#endif
}
BrowserFrameAura::~BrowserFrameAura() {

Powered by Google App Engine
This is Rietveld 408576698