Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit da55e85e authored by hscham's avatar hscham Committed by Automerger Merge Worker
Browse files

floss: replae base::TimeDelta::FromX with base::X for >r931007 libchrome am:...

floss: replae base::TimeDelta::FromX with base::X for >r931007 libchrome am: 30526255 am: d1877938

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2053226



Change-Id: I765c3b619674a7a1985d25c0edf27b2efd0a34df
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents a51ef6f2 d1877938
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4409,7 +4409,11 @@ static void btm_sec_wait_and_start_authentication(tBTM_SEC_DEV_REC* p_dev_rec) {
  auto addr = new RawAddress(p_dev_rec->bd_addr);
  bt_status_t status = do_in_main_thread_delayed(
      FROM_HERE, base::Bind(&btm_sec_auth_timer_timeout, addr),
#if BASE_VER < 931007
      base::TimeDelta::FromMilliseconds(BTM_DELAY_AUTH_MS));
#else
      base::Milliseconds(BTM_DELAY_AUTH_MS));
#endif
  if (status != BT_STATUS_SUCCESS) {
    LOG(ERROR) << __func__
               << ": do_in_main_thread_delayed failed. directly calling.";