Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: chrome/browser/resources/settings/basic_page/basic_page.js

Issue 2625263002: MD Settings: Convert reset profile banner to a dialog. (Closed)
Patch Set: Rebase (there were no conflits, but CQ failed to apply patch somehow) Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'settings-basic-page' is the settings page containing the actual settings. 7 * 'settings-basic-page' is the settings page containing the actual settings.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-basic-page', 10 is: 'settings-basic-page',
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 * @return {boolean} 125 * @return {boolean}
126 * @private 126 * @private
127 */ 127 */
128 computeShowSecondaryUserBanner_: function() { 128 computeShowSecondaryUserBanner_: function() {
129 return !this.hasExpandedSection_ && 129 return !this.hasExpandedSection_ &&
130 loadTimeData.getBoolean('isSecondaryUser'); 130 loadTimeData.getBoolean('isSecondaryUser');
131 }, 131 },
132 // </if> 132 // </if>
133 133
134 /** @private */ 134 /** @private */
135 onResetDone_: function() { 135 onResetProfileBannerClosed_: function() {
136 this.showResetProfileBanner_ = false; 136 this.showResetProfileBanner_ = false;
137 }, 137 },
138 138
139 /** 139 /**
140 * @return {boolean} 140 * @return {boolean}
141 * @private 141 * @private
142 */ 142 */
143 shouldShowAndroidApps_: function() { 143 shouldShowAndroidApps_: function() {
144 var visibility = /** @type {boolean|undefined} */ ( 144 var visibility = /** @type {boolean|undefined} */ (
145 this.get('pageVisibility.androidApps')); 145 this.get('pageVisibility.androidApps'));
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 /** 216 /**
217 * @param {boolean} opened Whether the menu is expanded. 217 * @param {boolean} opened Whether the menu is expanded.
218 * @return {string} Icon name. 218 * @return {string} Icon name.
219 * @private 219 * @private
220 */ 220 */
221 getArrowIcon_: function(opened) { 221 getArrowIcon_: function(opened) {
222 return opened ? 'cr:arrow-drop-up' : 'cr:arrow-drop-down'; 222 return opened ? 'cr:arrow-drop-up' : 'cr:arrow-drop-down';
223 }, 223 },
224 }); 224 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698