floss: fix TimeDelta calls from older libchrome breaks CrOS build.
base::TimeDelta calls introduced to eatt are only for libchrome before
version 931007. Therefore, call to it break the updated ChromeOS build.
BUG: 239467279
Tag: #floss
Test: emerge-${BOARD} floss
Change-Id: I2a375f6624f12a883f1e177d581285f44d459f82
diff --git a/system/stack/eatt/eatt_impl.h b/system/stack/eatt/eatt_impl.h
index 0a2c2af..7631a5b 100644
--- a/system/stack/eatt/eatt_impl.h
+++ b/system/stack/eatt/eatt_impl.h
@@ -214,7 +214,12 @@
FROM_HERE,
base::BindOnce(&eatt_impl::connect_eatt_wrap, base::Unretained(this),
std::move(eatt_dev)),
- base::TimeDelta::FromMilliseconds(500));
+#if BASE_VER < 931007
+ base::TimeDelta::FromMilliseconds(500)
+#else
+ base::Milliseconds(500)
+#endif
+ );
LOG_INFO("Scheduled peripheral connect eatt for device with status: %d",
(int)status);