Commit 85a228a1 authored by David Roger's avatar David Roger Committed by Commit Bot

[settings] Remove reference to diceEnabled in getEditPersonAssocControl

Bug: 891781
Change-Id: I25eed43ab6bd1b0ead335b9246962932b5b2f4b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2014912Reviewed-by: default avatarDemetrios Papadopoulos <dpapad@chromium.org>
Commit-Queue: David Roger <droger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735367}
parent ab02ef12
......@@ -243,7 +243,8 @@
<if expr="not chromeos">
<template is="dom-if" route-path="/manageProfile">
<settings-subpage
associated-control="[[getEditPersonAssocControl_(diceEnabled_)]]"
associated-control="[[getEditPersonAssocControl_(
syncStatus.signinAllowed)]]"
page-title="$i18n{editPerson}">
<settings-manage-profile profile-name="[[profileName_]]"
sync-status="[[syncStatus]]">
......
......@@ -206,8 +206,9 @@ Polymer({
* @private
*/
getEditPersonAssocControl_() {
return this.diceEnabled_ ? assert(this.$$('#edit-profile')) :
assert(this.$$('#picture-subpage-trigger'));
return this.syncStatus.signinAllowed ?
assert(this.$$('#edit-profile')) :
assert(this.$$('#picture-subpage-trigger'));
},
/**
......
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