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

Unified Diff: device/vr/test/fake_vr_device_provider.cc

Issue 2029703002: Moving VR service from /content/browser to /device (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added nogncheck to failing include Created 4 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
« no previous file with comments | « device/vr/test/fake_vr_device_provider.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/test/fake_vr_device_provider.cc
diff --git a/content/browser/vr/test/fake_vr_device_provider.cc b/device/vr/test/fake_vr_device_provider.cc
similarity index 75%
rename from content/browser/vr/test/fake_vr_device_provider.cc
rename to device/vr/test/fake_vr_device_provider.cc
index d69802be6396df686d0e700908711b58f2a1d723..246b3c4e1d832074e26d6421d99a4fb13cc8f968 100644
--- a/content/browser/vr/test/fake_vr_device_provider.cc
+++ b/device/vr/test/fake_vr_device_provider.cc
@@ -2,16 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/browser/vr/test/fake_vr_device_provider.h"
+#include "device/vr/test/fake_vr_device_provider.h"
-namespace content {
+namespace device {
FakeVRDeviceProvider::FakeVRDeviceProvider() : VRDeviceProvider() {
initialized_ = false;
}
-FakeVRDeviceProvider::~FakeVRDeviceProvider() {
-}
+FakeVRDeviceProvider::~FakeVRDeviceProvider() {}
void FakeVRDeviceProvider::AddDevice(VRDevice* device) {
devices_.push_back(device);
@@ -28,11 +27,11 @@ void FakeVRDeviceProvider::RemoveDevice(VRDevice* device) {
}
}
-void FakeVRDeviceProvider::GetDevices(std::vector<VRDevice*>& devices) {
+void FakeVRDeviceProvider::GetDevices(std::vector<VRDevice*>* devices) {
std::vector<VRDevice*>::iterator iter;
for (auto device : devices_) {
- devices.push_back(device);
+ devices->push_back(device);
}
}
@@ -40,4 +39,4 @@ void FakeVRDeviceProvider::Initialize() {
initialized_ = true;
}
-} // namespace content
+} // namespace device
« no previous file with comments | « device/vr/test/fake_vr_device_provider.h ('k') | device/vr/vr_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698