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

Unified Diff: content/renderer/screen_orientation/screen_orientation_dispatcher.cc

Issue 406883002: Don't use WebLockOrientationCallback::OnSuccess() with arguments. (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
Index: content/renderer/screen_orientation/screen_orientation_dispatcher.cc
diff --git a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
index 7e5bcfcd382aa85cf0c6add2a6d6517c39dd9dae..f0060ef0b2127ad16113a5b36b936729f88e2e90 100644
--- a/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
+++ b/content/renderer/screen_orientation/screen_orientation_dispatcher.cc
@@ -31,15 +31,12 @@ bool ScreenOrientationDispatcher::OnMessageReceived(
return handled;
}
-void ScreenOrientationDispatcher::OnLockSuccess(
- int request_id,
- unsigned angle,
- blink::WebScreenOrientationType orientation) {
+void ScreenOrientationDispatcher::OnLockSuccess(int request_id) {
blink::WebLockOrientationCallback* callback =
pending_callbacks_.Lookup(request_id);
if (!callback)
return;
- callback->onSuccess(angle, orientation);
+ callback->onSuccess();
pending_callbacks_.Remove(request_id);
}

Powered by Google App Engine
This is Rietveld 408576698