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 de5b089703fb5a227ad3676c347f6f93b3205b23..787228d1d003154f8eeab03e09e53d76cacdbf25 100644 |
--- a/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc |
+++ b/content/browser/screen_orientation/screen_orientation_dispatcher_host.cc |
@@ -102,16 +102,16 @@ void ScreenOrientationDispatcherHost::OnLockRequest( |
blink::WebLockOrientationErrorCanceled); |
} |
- current_lock_ = new LockInformation(request_id, |
- render_frame_host->GetProcess()->GetID(), |
- render_frame_host->GetRoutingID()); |
- |
if (!provider_) { |
NotifyLockError(request_id, |
blink::WebLockOrientationErrorNotAvailable); |
return; |
} |
+ current_lock_ = new LockInformation(request_id, |
+ render_frame_host->GetProcess()->GetID(), |
+ render_frame_host->GetRoutingID()); |
+ |
provider_->LockOrientation(request_id, orientation); |
} |
@@ -122,7 +122,7 @@ void ScreenOrientationDispatcherHost::OnUnlockRequest( |
blink::WebLockOrientationErrorCanceled); |
} |
- if (!provider_.get()) |
+ if (!provider_) |
return; |
provider_->UnlockOrientation(); |