| 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 7b067a67bcc8f1359a6c8c8d9724fb0d2ce8b58d..74728dc7343a2b96e9420317382084287613a4cf 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -125,7 +125,6 @@
|
| #include "content/public/common/web_preferences.h"
|
| #include "device/geolocation/geolocation_service_context.h"
|
| #include "device/nfc/nfc.mojom.h"
|
| -#include "device/wake_lock/wake_lock_service_context.h"
|
| #include "net/base/url_util.h"
|
| #include "net/http/http_cache.h"
|
| #include "net/http/http_transaction_factory.h"
|
| @@ -480,10 +479,9 @@ WebContentsImpl::WebContentsImpl(BrowserContext* browser_context)
|
| #if BUILDFLAG(ENABLE_PLUGINS)
|
| pepper_playback_observer_.reset(new PepperPlaybackObserver(this));
|
| #endif
|
| +
|
| + wake_lock_context_host_.reset(new WakeLockContextHost(this));
|
| loader_io_thread_notifier_.reset(new LoaderIOThreadNotifier(this));
|
| - wake_lock_service_context_.reset(new device::WakeLockServiceContext(
|
| - BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE),
|
| - base::Bind(&WebContentsImpl::GetNativeView, base::Unretained(this))));
|
| host_zoom_map_observer_.reset(new HostZoomMapObserver(this));
|
| }
|
|
|
| @@ -2475,8 +2473,8 @@ WebContentsImpl::GetGeolocationServiceContext() {
|
| return geolocation_service_context_.get();
|
| }
|
|
|
| -device::WakeLockServiceContext* WebContentsImpl::GetWakeLockServiceContext() {
|
| - return wake_lock_service_context_.get();
|
| +device::mojom::WakeLockContext* WebContentsImpl::GetWakeLockServiceContext() {
|
| + return wake_lock_context_host_->GetWakeLockContext();
|
| }
|
|
|
| void WebContentsImpl::OnShowValidationMessage(
|
|
|