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

Unified Diff: device/vr/vr_device_manager.cc

Issue 2584343002: WIP: working copy-no-compositor path
Patch Set: StatTracker destructor, delete old magic numbers, mojo export Created 3 years, 11 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: device/vr/vr_device_manager.cc
diff --git a/device/vr/vr_device_manager.cc b/device/vr/vr_device_manager.cc
index ec73db1086f69156716decc453473b00aa002bd7..ad99e0f849b14e7f5213e3525b2f8a46cceaf0b2 100644
--- a/device/vr/vr_device_manager.cc
+++ b/device/vr/vr_device_manager.cc
@@ -123,6 +123,7 @@ unsigned int VRDeviceManager::GetNumberOfConnectedDevices() {
void VRDeviceManager::ListeningForActivateChanged(bool listening) {
DCHECK(thread_checker_.CalledOnValidThread());
+ VLOG(1) << __FUNCTION__ << ": listening=" << listening;
bool activate_listeners = listening;
if (!activate_listeners) {
@@ -137,8 +138,11 @@ void VRDeviceManager::ListeningForActivateChanged(bool listening) {
// Notify all the providers if this changes
if (has_activate_listeners_ != activate_listeners) {
has_activate_listeners_ = activate_listeners;
- for (const auto& provider : providers_)
+ VLOG(1) << __FUNCTION__ << ": has_activate_listeners_=" << has_activate_listeners_;
+ for (const auto& provider : providers_) {
+ VLOG(1) << __FUNCTION__ << ": provider SetListeningForActivate " << has_activate_listeners_;
provider->SetListeningForActivate(has_activate_listeners_);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698