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

Unified Diff: chrome/browser/media/cast_transport_host_filter.cc

Issue 2921823002: Rationalize WakeLock naming conventions (Closed)
Patch Set: rebase Created 3 years, 6 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: chrome/browser/media/cast_transport_host_filter.cc
diff --git a/chrome/browser/media/cast_transport_host_filter.cc b/chrome/browser/media/cast_transport_host_filter.cc
index df512f740c784de8f302e3de1477928435e54761..270688fb0a026b4087dd89459e7bf4ab5b1b9fbb 100644
--- a/chrome/browser/media/cast_transport_host_filter.cc
+++ b/chrome/browser/media/cast_transport_host_filter.cc
@@ -165,7 +165,7 @@ void CastTransportHostFilter::OnNew(int32_t channel_id,
if (id_map_.IsEmpty()) {
DVLOG(1) << ("Preventing the application from being suspended while one or "
"more transports are active for Cast Streaming.");
- GetWakeLockService()->RequestWakeLock();
+ GetWakeLock()->RequestWakeLock();
}
if (id_map_.Lookup(channel_id)) {
@@ -211,7 +211,7 @@ void CastTransportHostFilter::OnDelete(int32_t channel_id) {
DVLOG(1)
<< ("Releasing the block on application suspension since no transports "
"are active anymore for Cast Streaming.");
- GetWakeLockService()->CancelWakeLock();
+ GetWakeLock()->CancelWakeLock();
}
}
@@ -397,11 +397,10 @@ void CastTransportHostFilter::OnCastRemotingSenderEvents(
std::vector<media::cast::PacketEvent>(), events));
}
-device::mojom::WakeLockService* CastTransportHostFilter::GetWakeLockService() {
+device::mojom::WakeLock* CastTransportHostFilter::GetWakeLock() {
// Here is a lazy binding, and will not reconnect after connection error.
if (!wake_lock_) {
- device::mojom::WakeLockServiceRequest request =
- mojo::MakeRequest(&wake_lock_);
+ device::mojom::WakeLockRequest request = mojo::MakeRequest(&wake_lock_);
// Service manager connection might be not initialized in some testing
// contexts.
« no previous file with comments | « chrome/browser/media/cast_transport_host_filter.h ('k') | content/browser/devtools/render_frame_devtools_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698