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

Unified Diff: content/shell/renderer/test_runner/mock_screen_orientation_client.cc

Issue 411543004: Use OnSuccess() with no arguments in MockScreenOrientationClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/test_runner/mock_screen_orientation_client.cc
diff --git a/content/shell/renderer/test_runner/mock_screen_orientation_client.cc b/content/shell/renderer/test_runner/mock_screen_orientation_client.cc
index 3eb83a624f60781068b1739f1f9fbd905ac49595..e697298f19460885745cf6c3f303b320d00c0eb3 100644
--- a/content/shell/renderer/test_runner/mock_screen_orientation_client.cc
+++ b/content/shell/renderer/test_runner/mock_screen_orientation_client.cc
@@ -131,8 +131,7 @@ void MockScreenOrientationClient::UpdateLockSync(
current_lock_ = lock;
if (!IsOrientationAllowedByCurrentLock(current_orientation_))
UpdateScreenOrientation(SuitableOrientationForCurrentLock());
- unsigned angle = OrientationTypeToAngle(current_orientation_);
- callback->onSuccess(angle, current_orientation_);
+ callback->onSuccess();
}
void MockScreenOrientationClient::ResetLockSync() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698