Commit 38f0f0b1 authored by Ryan Hansberry's avatar Ryan Hansberry Committed by Commit Bot

Smart Lock: Adjust settings to work with Polymer 2.

The |authToken_| property needed to be explicitly bound.

Bug: 933974
Change-Id: I7b0ec1d2d4750460f437137f8441ff1413a3345d
Reviewed-on: https://chromium-review.googlesource.com/c/1481090Reviewed-by: default avatarJeremy Klein <jlklein@chromium.org>
Reviewed-by: default avatarKyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Ryan Hansberry <hansberry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#634457}
parent 08c06537
......@@ -110,7 +110,8 @@
</template>
</settings-animated-pages>
<template is="dom-if" if="[[showPasswordPromptDialog_]]" restamp>
<settings-password-prompt-dialog id="multidevicePasswordPrompt">
<settings-password-prompt-dialog id="multidevicePasswordPrompt"
auth-token="{{authToken_}}">
</settings-password-prompt-dialog>
</template>
</template>
......
......@@ -59,7 +59,8 @@ suite('Multidevice', function() {
if (authRequired) {
assertTrue(multidevicePage.showPasswordPromptDialog_);
// Simulate the user entering a valid password, then closing the dialog.
multidevicePage.fire('auth-token-changed', {value: 'validAuthToken'});
multidevicePage.$$('#multidevicePasswordPrompt').authToken =
'validAuthToken';
// Simulate closing the password prompt dialog
multidevicePage.$$('#multidevicePasswordPrompt').fire('close');
Polymer.dom.flush();
......
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