Commit 6c3cee39 authored by Piotr Bialecki's avatar Piotr Bialecki Committed by Commit Bot

CR followup - move ArCore incognito configuration out of helper method

Change-Id: I82cc7d33ec13eff0e036cb346af40cc25f29a755
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2521289
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Auto-Submit: Piotr Bialecki <bialpio@chromium.org>
Reviewed-by: default avatarAlexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824572}
parent a641efaf
......@@ -376,6 +376,11 @@ base::Optional<ArCore::InitializeResult> ArCoreImpl::Initialize(
return base::nullopt;
}
// Set incognito mode for ARCore session - this is done unconditionally as we
// always want to limit the amount of logging done by ARCore.
ArSession_enableIncognitoMode_private(session.get());
DVLOG(1) << __func__ << ": ARCore incognito mode enabled";
base::Optional<std::unordered_set<device::mojom::XRSessionFeature>>
maybe_enabled_features = ConfigureFeatures(
session.get(), required_features, optional_features, tracked_images);
......@@ -435,11 +440,6 @@ ArCoreImpl::ConfigureFeatures(
enabled_features.insert(required_features.begin(), required_features.end());
enabled_features.insert(optional_features.begin(), optional_features.end());
// Set incognito mode for ARCore session - this is done unconditionally as we
// always want to limit the amount of logging done by ARCore.
ArSession_enableIncognitoMode_private(ar_session);
DVLOG(1) << __func__ << ": ARCore incognito mode enabled";
internal::ScopedArCoreObject<ArConfig*> arcore_config;
ArConfig_create(
ar_session,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment