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

Unified Diff: device/vr/vr_device.cc

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase Created 3 years, 10 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 | « device/vr/test/fake_vr_service_client.cc ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device.cc
diff --git a/device/vr/vr_device.cc b/device/vr/vr_device.cc
index 52d81bc359f184c83ce7d7280e9589ad91a114b7..03a968568ceba3ee70737b26934c4210e25931de 100644
--- a/device/vr/vr_device.cc
+++ b/device/vr/vr_device.cc
@@ -52,7 +52,7 @@ void VRDevice::OnChanged() {
void VRDevice::OnVRDisplayInfoCreated(mojom::VRDisplayInfoPtr vr_device_info) {
if (vr_device_info.is_null())
return;
- for (const auto& display : displays_)
+ for (auto* display : displays_)
display->client()->OnChanged(vr_device_info.Clone());
}
@@ -66,22 +66,22 @@ void VRDevice::OnExitPresent() {
}
void VRDevice::OnBlur() {
- for (const auto& display : displays_)
+ for (auto* display : displays_)
display->client()->OnBlur();
}
void VRDevice::OnFocus() {
- for (const auto& display : displays_)
+ for (auto* display : displays_)
display->client()->OnFocus();
}
void VRDevice::OnActivate(mojom::VRDisplayEventReason reason) {
- for (const auto& display : displays_)
+ for (auto* display : displays_)
display->client()->OnActivate(reason);
}
void VRDevice::OnDeactivate(mojom::VRDisplayEventReason reason) {
- for (const auto& display : displays_)
+ for (auto* display : displays_)
display->client()->OnDeactivate(reason);
}
« no previous file with comments | « device/vr/test/fake_vr_service_client.cc ('k') | device/vr/vr_device_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698