Index: content/renderer/screen_orientation/mock_screen_orientation_controller.cc |
diff --git a/content/renderer/screen_orientation/mock_screen_orientation_controller.cc b/content/renderer/screen_orientation/mock_screen_orientation_controller.cc |
index bc6f6c68a6ce36b7ded972550094d25a1e0e34a4..d16bc74e38d484a85ae12d069d94b877f7bbdace 100644 |
--- a/content/renderer/screen_orientation/mock_screen_orientation_controller.cc |
+++ b/content/renderer/screen_orientation/mock_screen_orientation_controller.cc |
@@ -31,7 +31,7 @@ void MockScreenOrientationController::UpdateLock( |
blink::WebScreenOrientationLockType lock) { |
DCHECK(lock != blink::WebScreenOrientationLockDefault); |
current_lock_ = lock; |
- if (IsOrientationAllowedByCurrentLock(current_orientation_)) |
+ if (!IsOrientationAllowedByCurrentLock(current_orientation_)) |
Inactive
2014/05/20 18:20:20
Ah, my bad. I broke that in when refactoring my CL
|
UpdateScreenOrientation(SuitableOrientationForCurrentLock()); |
} |