Commit 13d58bb7 authored by Callistus's avatar Callistus Committed by Chromium LUCI CQ

Fix addOrUpdateSearchIndex to await the LSS async method.

This is required so that we can record the time taken to initialize the
search index within the app.

Bug: b/170162419
Change-Id: Ie629239bcdd8490d60f1a788b93224af4e7ab112
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2612312Reviewed-by: default avatardstockwell <dstockwell@google.com>
Commit-Queue: Callistus Tan <callistus@google.com>
Cr-Commit-Position: refs/heads/master@{#841253}
parent f3ddb7c2
...@@ -102,7 +102,7 @@ guestMessagePipe.registerHandler( ...@@ -102,7 +102,7 @@ guestMessagePipe.registerHandler(
locale: searchable_item.locale, locale: searchable_item.locale,
}; };
}); });
indexRemote.addOrUpdate(data_to_send); return indexRemote.addOrUpdate(data_to_send);
}); });
guestMessagePipe.registerHandler(Message.CLEAR_SEARCH_INDEX, async () => { guestMessagePipe.registerHandler(Message.CLEAR_SEARCH_INDEX, async () => {
......
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