Commit 2e69d22e authored by Yue Li's avatar Yue Li Committed by Commit Bot

Add Assistant resources in OOBE UI

Add the Assistant lottie animation resource for OOBE UI.

Bug: b/141352784
Test: Manual Test
Change-Id: I3afb598e8025439c79ef6c57ee9560b0fb2f1372
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1816967
Commit-Queue: Yue Li <updowndota@chromium.org>
Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#698615}
parent f032b8ea
...@@ -179,6 +179,12 @@ void AddArcScreensResources(content::WebUIDataSource* source) { ...@@ -179,6 +179,12 @@ void AddArcScreensResources(content::WebUIDataSource* source) {
IDR_ARC_SUPPORT_RECOMMEND_APP_LIST_VIEW_HTML); IDR_ARC_SUPPORT_RECOMMEND_APP_LIST_VIEW_HTML);
} }
void AddAssistantScreensResources(content::WebUIDataSource* source) {
source->AddResourcePath("voice_match_animation.json",
IDR_ASSISTANT_VOICE_MATCH_ANIMATION);
source->OverrideContentSecurityPolicyWorkerSrc("worker-src blob: 'self';");
}
void AddFingerprintResources(content::WebUIDataSource* source) { void AddFingerprintResources(content::WebUIDataSource* source) {
int animation_id; int animation_id;
bool is_lottie_animation = false; bool is_lottie_animation = false;
...@@ -269,6 +275,7 @@ content::WebUIDataSource* CreateOobeUIDataSource( ...@@ -269,6 +275,7 @@ content::WebUIDataSource* CreateOobeUIDataSource(
AddFingerprintResources(source); AddFingerprintResources(source);
AddSyncConsentResources(source); AddSyncConsentResources(source);
AddArcScreensResources(source); AddArcScreensResources(source);
AddAssistantScreensResources(source);
source->AddResourcePath(kKeyboardUtilsJSPath, IDR_KEYBOARD_UTILS_JS); source->AddResourcePath(kKeyboardUtilsJSPath, IDR_KEYBOARD_UTILS_JS);
source->OverrideContentSecurityPolicyObjectSrc( source->OverrideContentSecurityPolicyObjectSrc(
......
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