OSDN Git Service

Explicit use base::Location stack/btu/btu_hcif::
authorChris Manton <cmanton@google.com>
Sat, 28 Nov 2020 17:29:56 +0000 (09:29 -0800)
committerChris Manton <cmanton@google.com>
Tue, 1 Dec 2020 04:17:28 +0000 (04:17 +0000)
Bug: 163134718
Tag: #refactor
Test: gd/cert/run --host
Change-Id: I6461b403d2cb0adff6f0e88bc8dd3df189e4514a

stack/btu/btu_hcif.cc

index 884ef43..5593f32 100644 (file)
@@ -731,7 +731,7 @@ using hci_cmd_cb = base::OnceCallback<void(
 
 struct cmd_with_cb_data {
   hci_cmd_cb cb;
-  Location posted_from;
+  base::Location posted_from;
 };
 
 void cmd_with_cb_data_init(cmd_with_cb_data* cb_wrapper) {
@@ -875,9 +875,9 @@ static void btu_hcif_command_status_evt_with_cb(uint8_t status, BT_HDR* command,
 /* This function is called to send commands to the Host Controller. |cb| is
  * called when command status event is called with error code, or when the
  * command complete event is received. */
-void btu_hcif_send_cmd_with_cb(const Location& posted_from, uint16_t opcode,
-                               uint8_t* params, uint8_t params_len,
-                               hci_cmd_cb cb) {
+void btu_hcif_send_cmd_with_cb(const base::Location& posted_from,
+                               uint16_t opcode, uint8_t* params,
+                               uint8_t params_len, hci_cmd_cb cb) {
   BT_HDR* p = (BT_HDR*)osi_malloc(HCI_CMD_BUF_SIZE);
   uint8_t* pp = (uint8_t*)(p + 1);