| Index: content/browser/wake_lock/wake_lock_service_context.cc
|
| diff --git a/content/browser/wake_lock/wake_lock_service_context.cc b/content/browser/wake_lock/wake_lock_service_context.cc
|
| index 7a706e8582da83c58305cda7e8ceb5517e97495a..813c70341c8be1459dcdb10adc7fc4e3bead3f40 100644
|
| --- a/content/browser/wake_lock/wake_lock_service_context.cc
|
| +++ b/content/browser/wake_lock/wake_lock_service_context.cc
|
| @@ -13,6 +13,7 @@
|
| #include "content/public/browser/power_save_blocker_factory.h"
|
| #include "content/public/browser/render_frame_host.h"
|
| #include "content/public/browser/render_process_host.h"
|
| +#include "content/public/browser/web_contents.h"
|
| #include "content/public/common/service_registry.h"
|
|
|
| namespace content {
|
| @@ -70,7 +71,7 @@ void WakeLockServiceContext::CreateWakeLock() {
|
| DCHECK(web_contents());
|
|
|
| static_cast<PowerSaveBlockerImpl*>(wake_lock_.get())
|
| - ->InitDisplaySleepBlocker(web_contents());
|
| + ->InitDisplaySleepBlocker(web_contents()->GetNativeView());
|
| #endif
|
| }
|
|
|
|
|