Commit f97afcbd authored by Regan Hsu's avatar Regan Hsu Committed by Commit Bot

[CrOS Settings] Add delete DLC search tags.

Fixed: 1083021
Change-Id: Id73d266856482bffd2dd89584eb426fa6670d559
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2203270Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Regan Hsu <hsuregan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#770818}
parent c4c45dde
......@@ -493,6 +493,18 @@
<message name="IDS_OS_SETTINGS_TAG_DOWNLOADED_CONTENT_ALT1" desc="Text for search result item which, when clicked, navigates the user to downloaded content. Alternate phrase for: 'Downloaded Content'">
DLC
</message>
<message name="IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT" desc="Text for search result item which, when clicked, navigates the user to downloaded content subpage where they can choose to delete a DLC from the device. Alternate phrase for: 'Delete Downloaded Content', 'Remove DLC', 'Delete DLC'">
Remove Downloaded Content
</message>
<message name="IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT_ALT1" desc="Text for search result item which, when clicked, navigates the user to downloaded content subpage where they can choose to delete a DLC from the device. Alternate phrase for: 'Delete Downloaded Content', 'Remove Downloaded Content', 'Delete DLC'">
Remove DLC
</message>
<message name="IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT_ALT2" desc="Text for search result item which, when clicked, navigates the user to downloaded content subpage where they can choose to delete a DLC from the device. Alternate phrase for: 'Remove Downloaded Content', 'Remove DLC', 'Delete DLC'">
Delete Downloaded Content
</message>
<message name="IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT_ALT3" desc="Text for search result item which, when clicked, navigates the user to downloaded content subpage where they can choose to delete a DLC from the device. Alternate phrase for: 'Delete Downloaded Content', 'Remove DLC', 'Remove Downloaded Content'">
Delete DLC
</message>
<message name="IDS_OS_SETTINGS_TAG_EXTERNAL_STORAGE" desc="Text for search result item which, when clicked, navigates the user to external storage preferences.">
External storage preferences
</message>
......
......@@ -96,6 +96,7 @@ enum Setting {
kSleepWhenLaptopLidClosed = 424,
kDisplayResolution = 425,
kDisplayRefreshRate = 426,
kRemoveDlc = 427,
// Personalization section.
kOpenWallpaper = 500,
......
......@@ -379,6 +379,16 @@ const std::vector<SearchConcept>& GetDlcSearchConcepts() {
{.subpage = mojom::Subpage::kDlc},
{IDS_OS_SETTINGS_TAG_DOWNLOADED_CONTENT_ALT1,
SearchConcept::kAltTagEnd}},
{IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT,
mojom::kDlcSubpagePath,
mojom::SearchResultIcon::kHardDrive,
mojom::SearchResultDefaultRank::kLow,
mojom::SearchResultType::kSetting,
{.setting = mojom::Setting::kRemoveDlc},
{IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT_ALT1,
IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT_ALT2,
IDS_OS_SETTINGS_TAG_REMOVE_DOWNLOADED_CONTENT_ALT3,
SearchConcept::kAltTagEnd}},
});
return *tags;
}
......@@ -897,6 +907,8 @@ void DeviceSection::RegisterHierarchy(HierarchyGenerator* generator) const {
generator->RegisterNestedSubpage(IDS_SETTINGS_DLC_SUBPAGE_TITLE,
mojom::Subpage::kDlc,
mojom::Subpage::kStorage);
generator->RegisterNestedSetting(mojom::Setting::kRemoveDlc,
mojom::Subpage::kDlc);
// Power.
generator->RegisterTopLevelSubpage(IDS_SETTINGS_POWER_TITLE,
......
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