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

Unified Diff: third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp

Issue 1808203005: [OnionSoup] Moving VR service from content to Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using std::unique_ptr and using [Sync] mojo call! Created 4 years, 8 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: third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp
diff --git a/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp b/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp
index aad047a65311b1f2ca510df3663b3f7b409e0bf5..a0dcf4b725bb5ed90989e34a09609dc64ee9c820 100644
--- a/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp
+++ b/third_party/WebKit/Source/modules/vr/NavigatorVRDevice.cpp
@@ -58,7 +58,8 @@ ScriptPromise NavigatorVRDevice::getVRDevices(ScriptState* scriptState)
return promise;
}
- controller()->getDevices(new VRGetDevicesCallback(resolver, m_hardwareUnits.get()));
+ std::unique_ptr<VRGetDevicesCallback> callback(new VRGetDevicesCallback(resolver, m_hardwareUnits.get()));
+ controller()->getDevices(std::move(callback));
return promise;
}

Powered by Google App Engine
This is Rietveld 408576698