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

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2867303003: Generalize the API of WakeLockContext mojo interface. (Closed)
Patch Set: Generalize the API of WakeLockContext mojo interface. 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
« no previous file with comments | « content/browser/wake_lock/wake_lock_context_host.cc ('k') | device/power_save_blocker/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 6cee92c3e57c1e88a42edff7fcc9c039c79da5c0..b6ece0a6f234cef6477844ed044b7031240a258f 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2637,7 +2637,10 @@ device::mojom::WakeLockService* WebContentsImpl::GetRendererWakeLock() {
if (!wake_lock_context) {
return nullptr;
}
- wake_lock_context->GetWakeLock(mojo::MakeRequest(&renderer_wake_lock_));
+ wake_lock_context->GetWakeLock(
+ device::mojom::WakeLockType::PreventDisplaySleep,
+ device::mojom::WakeLockReason::ReasonOther, "Wake Lock API",
+ mojo::MakeRequest(&renderer_wake_lock_));
}
return renderer_wake_lock_.get();
}
« no previous file with comments | « content/browser/wake_lock/wake_lock_context_host.cc ('k') | device/power_save_blocker/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698