Index: content/browser/wake_lock/wake_lock_browsertest.cc |
diff --git a/content/browser/wake_lock/wake_lock_browsertest.cc b/content/browser/wake_lock/wake_lock_browsertest.cc |
index fee42cae21434af11aaede46037137fbbb8be327..cae22965e1d607467592a5401226876fff9fe2f0 100644 |
--- a/content/browser/wake_lock/wake_lock_browsertest.cc |
+++ b/content/browser/wake_lock/wake_lock_browsertest.cc |
@@ -66,15 +66,15 @@ class WakeLockTest : public ContentBrowserTest { |
return GetNestedFrameNode()->current_frame_host(); |
} |
- device::mojom::WakeLockContext* GetWakeLockServiceContext() { |
- return GetWebContentsImpl()->GetWakeLockServiceContext(); |
+ device::mojom::WakeLockService* GetRendererWakeLock() { |
+ return GetWebContentsImpl()->GetRendererWakeLock(); |
} |
bool HasWakeLock() { |
bool has_wakelock = false; |
base::RunLoop run_loop; |
- GetWakeLockServiceContext()->HasWakeLockForTests( |
+ GetRendererWakeLock()->HasWakeLockForTests( |
base::Bind(&OnHasWakeLock, &has_wakelock)); |
run_loop.Run(); |
return has_wakelock; |