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() { |