Test orientation controller should update current orientation when it is not allowed by lock.

BUG=162827

Review URL: https://codereview.chromium.org/296813002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272020 0039d316-1c4b-4281-b951-d872f2087c98
parent c7b11e87
...@@ -31,7 +31,7 @@ void MockScreenOrientationController::UpdateLock( ...@@ -31,7 +31,7 @@ void MockScreenOrientationController::UpdateLock(
blink::WebScreenOrientationLockType lock) { blink::WebScreenOrientationLockType lock) {
DCHECK(lock != blink::WebScreenOrientationLockDefault); DCHECK(lock != blink::WebScreenOrientationLockDefault);
current_lock_ = lock; current_lock_ = lock;
if (IsOrientationAllowedByCurrentLock(current_orientation_)) if (!IsOrientationAllowedByCurrentLock(current_orientation_))
UpdateScreenOrientation(SuitableOrientationForCurrentLock()); UpdateScreenOrientation(SuitableOrientationForCurrentLock());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment