Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / browser / screen_orientation / screen_orientation_dispatcher_host_impl.cc
index df426a8..1e5240d 100644 (file)
@@ -27,7 +27,7 @@ ScreenOrientationDispatcherHostImpl::ScreenOrientationDispatcherHostImpl(
     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() {
@@ -108,11 +108,6 @@ void ScreenOrientationDispatcherHostImpl::OnOrientationChange() {
     provider_->OnOrientationChange();
 }
 
-void ScreenOrientationDispatcherHostImpl::SetProvider(
-    ScreenOrientationProvider* provider) {
-  provider_.reset(provider);
-}
-
 void ScreenOrientationDispatcherHostImpl::OnLockRequest(
     RenderFrameHost* render_frame_host,
     blink::WebScreenOrientationLockType orientation,