Index: content/shell/browser/shell_android.cc |
diff --git a/content/shell/browser/shell_android.cc b/content/shell/browser/shell_android.cc |
index c38e902a4b020640384156032ca9c60c93da25a0..9b760375f16fb3386a3984894be8448e4ac2a9f4 100644 |
--- a/content/shell/browser/shell_android.cc |
+++ b/content/shell/browser/shell_android.cc |
@@ -15,6 +15,8 @@ |
#include "content/public/common/content_switches.h" |
#include "content/shell/android/shell_manager.h" |
#include "jni/Shell_jni.h" |
+#include "ui/android/screen_android.h" |
+#include "ui/display/screen.h" |
using base::android::AttachCurrentThread; |
using base::android::ConvertUTF8ToJavaString; |
@@ -24,6 +26,7 @@ using base::android::ScopedJavaLocalRef; |
namespace content { |
void Shell::PlatformInitialize(const gfx::Size& default_window_size) { |
+ display::Screen::SetScreenInstance(ui::CreateScreenAndroid()); |
} |
void Shell::PlatformExit() { |