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

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

Issue 2696303004: Android screen orientation lock should lock/unlock the same activity (Closed)
Patch Set: Add data deps to chrome_test_java Created 3 years, 10 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/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java b/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
index 4f3e373e891b8432ccc9aee2283dfe7452307a57..a03f016171021734d489c73c22c18f22b1fd702a 100644
--- a/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/browser/ScreenOrientationListenerTest.java
@@ -229,7 +229,8 @@ public class ScreenOrientationListenerTest extends ContentShellTestBase {
ThreadUtils.runOnUiThreadBlocking(new Runnable() {
@Override
public void run() {
- ScreenOrientationProvider.lockOrientation(null, (byte) orientationValue);
+ ScreenOrientationProvider.lockOrientation(
+ getContentViewCore().getWindowAndroid(), (byte) orientationValue);
}
});
mCallbackHelper.waitForCallback(callCount);

Powered by Google App Engine
This is Rietveld 408576698