WebContents* web_contents)
: WebContentsObserver(web_contents),
current_lock_(NULL) {
- provider_.reset(ScreenOrientationProvider::Create(this, web_contents));
+ provider_.reset(new ScreenOrientationProvider(this, web_contents));
}
ScreenOrientationDispatcherHostImpl::~ScreenOrientationDispatcherHostImpl() {
provider_->OnOrientationChange();
}
-void ScreenOrientationDispatcherHostImpl::SetProvider(
- ScreenOrientationProvider* provider) {
- provider_.reset(provider);
-}
-
void ScreenOrientationDispatcherHostImpl::OnLockRequest(
RenderFrameHost* render_frame_host,
blink::WebScreenOrientationLockType orientation,