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

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

Issue 2361633002: android: Introduce DisplayAndroid (Closed)
Patch Set: test comments Created 4 years, 2 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/ScreenOrientationProvider.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java b/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java
index f5013222f2e1fe3a8b573a14fbccdbff32bd766c..b7a17138b73dc2356232544d615ad6d0f5f60a17 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ScreenOrientationProvider.java
@@ -15,6 +15,7 @@ import org.chromium.base.annotations.CalledByNative;
import org.chromium.base.annotations.JNINamespace;
import org.chromium.content_public.common.ScreenOrientationConstants;
import org.chromium.content_public.common.ScreenOrientationValues;
+import org.chromium.ui.display.DisplayAndroid;
import org.chromium.ui.gfx.DeviceDisplayInfo;
/**
@@ -114,7 +115,7 @@ public class ScreenOrientationProvider {
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- ScreenOrientationListener.getInstance().startAccurateListening();
+ DisplayAndroid.startAccurateListening();
}
});
}
@@ -124,7 +125,7 @@ public class ScreenOrientationProvider {
ThreadUtils.runOnUiThread(new Runnable() {
@Override
public void run() {
- ScreenOrientationListener.getInstance().stopAccurateListening();
+ DisplayAndroid.stopAccurateListening();
}
});
}

Powered by Google App Engine
This is Rietveld 408576698