Commit 90a2e3e2 authored by Daniel Classon's avatar Daniel Classon Committed by Commit Bot

[AppsPage] Change Play Store settings hierarchy

Move the Play Store settings position in the Apps Page hierarchy to
reflect their search tags and the actual positions in the HTML.

Bug: 1084154
Change-Id: I9fa87fcf86aab6b8d8335aaed1d80e68678cb3f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2378734
Commit-Queue: Daniel Classon <dclasson@google.com>
Reviewed-by: default avatarRegan Hsu <hsuregan@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802036}
parent 6fd56ce9
...@@ -238,6 +238,8 @@ std::string AppsSection::GetSectionPath() const { ...@@ -238,6 +238,8 @@ std::string AppsSection::GetSectionPath() const {
} }
void AppsSection::RegisterHierarchy(HierarchyGenerator* generator) const { void AppsSection::RegisterHierarchy(HierarchyGenerator* generator) const {
generator->RegisterTopLevelSetting(mojom::Setting::kTurnOnPlayStore);
// Manage apps. // Manage apps.
generator->RegisterTopLevelSubpage(IDS_SETTINGS_APPS_LINK_TEXT, generator->RegisterTopLevelSubpage(IDS_SETTINGS_APPS_LINK_TEXT,
mojom::Subpage::kAppManagement, mojom::Subpage::kAppManagement,
...@@ -266,10 +268,11 @@ void AppsSection::RegisterHierarchy(HierarchyGenerator* generator) const { ...@@ -266,10 +268,11 @@ void AppsSection::RegisterHierarchy(HierarchyGenerator* generator) const {
static constexpr mojom::Setting kGooglePlayStoreSettings[] = { static constexpr mojom::Setting kGooglePlayStoreSettings[] = {
mojom::Setting::kManageAndroidPreferences, mojom::Setting::kManageAndroidPreferences,
mojom::Setting::kRemovePlayStore, mojom::Setting::kRemovePlayStore,
mojom::Setting::kTurnOnPlayStore,
}; };
RegisterNestedSettingBulk(mojom::Subpage::kGooglePlayStore, RegisterNestedSettingBulk(mojom::Subpage::kGooglePlayStore,
kGooglePlayStoreSettings, generator); kGooglePlayStoreSettings, generator);
generator->RegisterTopLevelAltSetting(
mojom::Setting::kManageAndroidPreferences);
} }
void AppsSection::OnAppRegistered(const std::string& app_id, void AppsSection::OnAppRegistered(const std::string& app_id,
......
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