| 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 319daf9e93ac0e6e1c635641741de2db525e2850..b22bfdaa29fea8982f715fce1d99644b77d2ee72 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"
|
| @@ -104,7 +104,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"
|
| @@ -1618,8 +1618,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));
|
|
|
| @@ -2444,6 +2443,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,
|
|
|