Commit 49c6a27a authored by Daniel Classon's avatar Daniel Classon Committed by Commit Bot

[OsSettingsDeepLinking] Update Reset Page to use attemptDeepLink

DeepLinkingBehavior was beefed up to handle more of the logic. Updated
the Reset Page to use the new methods.

Bug: 1084154
Change-Id: I7234d0f5d9162614aa22e2eb03328ecabdd7fe24
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2318002
Commit-Queue: Daniel Classon <dclasson@google.com>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#793236}
parent ea8d0c2c
...@@ -15,6 +15,15 @@ Polymer({ ...@@ -15,6 +15,15 @@ Polymer({
properties: { properties: {
/** @private */ /** @private */
showPowerwashDialog_: Boolean, showPowerwashDialog_: Boolean,
/**
* Used by DeepLinkingBehavior to focus this page's deep links.
* @type {!Set<!chromeos.settings.mojom.Setting>}
*/
supportedSettingIds: {
type: Object,
value: () => new Set([chromeos.settings.mojom.Setting.kPowerwash]),
},
}, },
/** @private */ /** @private */
...@@ -45,9 +54,6 @@ Polymer({ ...@@ -45,9 +54,6 @@ Polymer({
return; return;
} }
const settingId = this.getDeepLinkSettingId(); this.attemptDeepLink();
if (settingId === chromeos.settings.mojom.Setting.kPowerwash) {
this.showDeepLink(settingId);
}
}, },
}); });
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