Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Unified Diff: content/browser/wake_lock/wake_lock_browsertest.cc

Issue 2843353003: Move ownership of PowerSaveBlocker from WakeLockServiceContext to WakeLockServiceImpl (Closed)
Patch Set: code rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698