| Index: content/browser/screen_orientation/screen_orientation_dispatcher_host.cc
|
| diff --git a/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc b/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc
|
| index 787228d1d003154f8eeab03e09e53d76cacdbf25..5d77d6c88958a53857c1f404cc415da2cebc97b1 100644
|
| --- a/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc
|
| +++ b/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc
|
| @@ -83,6 +83,13 @@ void ScreenOrientationDispatcherHost::NotifyLockError(
|
| if (!render_frame_host)
|
| return;
|
|
|
| + NotifyLockError(request_id, render_frame_host, error);
|
| +}
|
| +
|
| +void ScreenOrientationDispatcherHost::NotifyLockError(
|
| + int request_id,
|
| + RenderFrameHost* render_frame_host,
|
| + blink::WebLockOrientationError error) {
|
| render_frame_host->Send(new ScreenOrientationMsg_LockError(
|
| render_frame_host->GetRoutingID(), request_id, error));
|
| ResetCurrentLock();
|
| @@ -98,12 +105,12 @@ void ScreenOrientationDispatcherHost::OnLockRequest(
|
| blink::WebScreenOrientationLockType orientation,
|
| int request_id) {
|
| if (current_lock_) {
|
| - NotifyLockError(current_lock_->request_id,
|
| + NotifyLockError(current_lock_->request_id, render_frame_host,
|
| blink::WebLockOrientationErrorCanceled);
|
| }
|
|
|
| if (!provider_) {
|
| - NotifyLockError(request_id,
|
| + NotifyLockError(request_id, render_frame_host,
|
| blink::WebLockOrientationErrorNotAvailable);
|
| return;
|
| }
|
| @@ -118,7 +125,7 @@ void ScreenOrientationDispatcherHost::OnLockRequest(
|
| void ScreenOrientationDispatcherHost::OnUnlockRequest(
|
| RenderFrameHost* render_frame_host) {
|
| if (current_lock_) {
|
| - NotifyLockError(current_lock_->request_id,
|
| + NotifyLockError(current_lock_->request_id, render_frame_host,
|
| blink::WebLockOrientationErrorCanceled);
|
| }
|
|
|
|
|