Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index a24ea16d2dff31c2e46d04080e2556a8751f4228..45468f70b570a75dc0f4c9a221c254d3fd34455f 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -71,7 +71,7 @@ |
#include "content/browser/renderer_host/render_widget_host_input_event_router.h" |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
#include "content/browser/renderer_host/text_input_manager.h" |
-#include "content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.h" |
+#include "content/browser/screen_orientation/screen_orientation.h" |
#include "content/browser/site_instance_impl.h" |
#include "content/browser/web_contents/web_contents_view_child_frame.h" |
#include "content/browser/web_contents/web_contents_view_guest.h" |
@@ -103,7 +103,7 @@ |
#include "content/public/browser/notification_types.h" |
#include "content/public/browser/render_widget_host_iterator.h" |
#include "content/public/browser/resource_request_details.h" |
-#include "content/public/browser/screen_orientation_dispatcher_host.h" |
+#include "content/public/browser/screen_orientation_provider.h" |
#include "content/public/browser/security_style_explanations.h" |
#include "content/public/browser/storage_partition.h" |
#include "content/public/browser/user_metrics.h" |
@@ -1610,8 +1610,7 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) { |
NOTIFICATION_RENDER_WIDGET_HOST_DESTROYED, |
NotificationService::AllBrowserContextsAndSources()); |
- screen_orientation_dispatcher_host_.reset( |
- new ScreenOrientationDispatcherHostImpl(this)); |
+ screen_orientation_.reset(new ScreenOrientation(this)); |
manifest_manager_host_.reset(new ManifestManagerHost(this)); |
@@ -2423,6 +2422,10 @@ device::WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() { |
return wake_lock_service_context_.get(); |
} |
+ScreenOrientationProvider* WebContentsImpl::GetScreenOrientationProvider() { |
+ return screen_orientation_.get()->GetScreenOrientationProvider(); |
+} |
+ |
void WebContentsImpl::OnShowValidationMessage( |
const gfx::Rect& anchor_in_root_view, |
const base::string16& main_text, |