Commit 3da3ac85 authored by Alexander Dunaev's avatar Alexander Dunaev Committed by Commit Bot

[ozone/x11] Cleaned up the code that initialises touch device list.

Ozone/X11 already initialises the touch device list in
OzonePlatformX11::InitializeUI(), where it does the same call as
StartupBrowserCreator::ProcessCmdLineImpl(), but the latter had an
UNIMPLEMENTED_LOG_ONCE macro and a TODO for supporting the feature on
Ozone.

This CL cleans the code a bit.

Bug: 1097696
Change-Id: I74c67be4d6f6ef8e1f9379463c0cb96187f1b0f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2367058
Auto-Submit: Alexander Dunaev <adunaev@igalia.com>
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#800223}
parent c4a2b3ae
......@@ -699,11 +699,10 @@ bool StartupBrowserCreator::ProcessCmdLineImpl(
#endif // OS_CHROMEOS
#if defined(TOOLKIT_VIEWS) && defined(USE_X11)
// TODO(https://crbug.com/1097696): make it available on ozone/linux.
if (!features::IsUsingOzonePlatform())
if (!features::IsUsingOzonePlatform()) {
// Ozone sets the device list upon platform initialisation.
ui::TouchFactory::SetTouchDeviceListFromCommandLine();
else
NOTIMPLEMENTED_LOG_ONCE();
}
#endif
#if defined(OS_MAC)
......
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