Remove XrRuntimeManager::ForEachRuntime.
This was going to be migrated to use base::FunctionRef, but as there are no callers, just delete it instead. Change-Id: I2a7c68aaea9b56a395572b73ca2c48ccfd73827e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5051068 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/main@{#1228880}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
eb021b5db4
commit
784611b9d4
content
browser
public
browser
@@ -578,13 +578,6 @@ XRRuntimeManagerImpl::GetXrFrameSinkClientFactory() {
|
|||||||
return base::BindRepeating(&FrameSinkClientFactory);
|
return base::BindRepeating(&FrameSinkClientFactory);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XRRuntimeManagerImpl::ForEachRuntime(
|
|
||||||
base::RepeatingCallback<void(BrowserXRRuntime*)> fn) {
|
|
||||||
for (auto& runtime : runtimes_) {
|
|
||||||
fn.Run(runtime.second.get());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
std::vector<webxr::mojom::RuntimeInfoPtr>
|
std::vector<webxr::mojom::RuntimeInfoPtr>
|
||||||
XRRuntimeManagerImpl::GetActiveRuntimes() {
|
XRRuntimeManagerImpl::GetActiveRuntimes() {
|
||||||
std::vector<webxr::mojom::RuntimeInfoPtr> active_runtimes;
|
std::vector<webxr::mojom::RuntimeInfoPtr> active_runtimes;
|
||||||
|
@@ -97,8 +97,6 @@ class CONTENT_EXPORT XRRuntimeManagerImpl
|
|||||||
|
|
||||||
// XRRuntimeManager implementation
|
// XRRuntimeManager implementation
|
||||||
BrowserXRRuntimeImpl* GetRuntime(device::mojom::XRDeviceId id) override;
|
BrowserXRRuntimeImpl* GetRuntime(device::mojom::XRDeviceId id) override;
|
||||||
void ForEachRuntime(
|
|
||||||
base::RepeatingCallback<void(BrowserXRRuntime*)> fn) override;
|
|
||||||
|
|
||||||
content::WebXrLoggerManager& GetLoggerManager();
|
content::WebXrLoggerManager& GetLoggerManager();
|
||||||
|
|
||||||
|
@@ -49,11 +49,6 @@ class CONTENT_EXPORT XRRuntimeManager {
|
|||||||
// XRDeviceId, or nullptr if no such device exists/has been registered.
|
// XRDeviceId, or nullptr if no such device exists/has been registered.
|
||||||
virtual content::BrowserXRRuntime* GetRuntime(
|
virtual content::BrowserXRRuntime* GetRuntime(
|
||||||
device::mojom::XRDeviceId id) = 0;
|
device::mojom::XRDeviceId id) = 0;
|
||||||
|
|
||||||
// Provides a mechanism for performing operations on/reasoning about all
|
|
||||||
// currently active runtimes, without exposing the collection.
|
|
||||||
virtual void ForEachRuntime(
|
|
||||||
base::RepeatingCallback<void(content::BrowserXRRuntime*)> fn) = 0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace content
|
} // namespace content
|
||||||
|
Reference in New Issue
Block a user