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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java

Issue 213123011: Make DeviceDisplayInfo a Singleton and have ScreenOrientationListener update it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java b/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
index a14d76bef1644f316f55bb5aa8ff081f349a4dc9..82f8675090e6f657c516d111dde7650c32bc5beb 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationListener.java
@@ -19,6 +19,7 @@ import com.google.common.annotations.VisibleForTesting;
import org.chromium.base.ObserverList;
import org.chromium.base.ThreadUtils;
+import org.chromium.ui.gfx.DeviceDisplayInfo;
/**
* ScreenOrientationListener is a class that informs its observers when the
@@ -251,6 +252,8 @@ public class ScreenOrientationListener {
int previousOrientation = mOrientation;
updateOrientation();
+ DeviceDisplayInfo.getInstance(mAppContext).updateNativeSharedDisplayInfo();
+
if (mOrientation == previousOrientation) {
return;
}

Powered by Google App Engine
This is Rietveld 408576698