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

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

Issue 2126733002: Make ScreenWakeLock ContextLifecycleObserver instead of LocalFrameLifecycleObserver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: temp Created 4 years, 5 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 59e3ab71e1c0e168d3a7543725beafdf5517eee5..483d13c56f8ae266ce618ae604c558cdb0e41e41 100644
--- a/content/browser/wake_lock/wake_lock_browsertest.cc
+++ b/content/browser/wake_lock/wake_lock_browsertest.cc
@@ -266,7 +266,7 @@ IN_PROC_BROWSER_TEST_F(WakeLockTest, UnlockAfterReload) {
ScreenWakeLockInMainFrame();
shell()->Reload();
- WaitForLoadStop(GetWebContents());
+ WaitForPossibleUpdate();
// Screen wake lock should be released after reload.
EXPECT_FALSE(HasWakeLock());

Powered by Google App Engine
This is Rietveld 408576698