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 f7505af877b67c2644609a9ff6920d39dfba84a0..c4ce16bbef1143c00626c75661905c611c8e72e0 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -57,6 +57,7 @@ |
#include "content/browser/renderer_host/render_widget_host_view_base.h" |
#include "content/browser/screen_orientation/screen_orientation_dispatcher_host_impl.h" |
#include "content/browser/site_instance_impl.h" |
+#include "content/browser/wake_lock/wake_lock_service_context.h" |
#include "content/browser/web_contents/web_contents_view_guest.h" |
#include "content/browser/webui/generic_handler.h" |
#include "content/browser/webui/web_ui_controller_factory_registry.h" |
@@ -417,6 +418,8 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context) |
#else |
audio_state_provider_.reset(new AudioStreamMonitor(this)); |
#endif |
+ |
+ wake_lock_service_context_.reset(new WakeLockServiceContext(this)); |
} |
WebContentsImpl::~WebContentsImpl() { |
@@ -2057,6 +2060,10 @@ GeolocationServiceContext* WebContentsImpl::GetGeolocationServiceContext() { |
return geolocation_service_context_.get(); |
} |
+WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() { |
+ return wake_lock_service_context_.get(); |
+} |
+ |
void WebContentsImpl::OnShowValidationMessage( |
const gfx::Rect& anchor_in_root_view, |
const base::string16& main_text, |