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

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: Nit. 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 if (this.pageVisibility.advancedSettings !== false) { 103 if (this.pageVisibility.advancedSettings !== false) {
104 assert(whenSearchDone === settings.getSearchManager().search( 104 assert(whenSearchDone === settings.getSearchManager().search(
105 query, assert(this.$.advancedPageTemplate.get()))); 105 query, assert(this.$.advancedPageTemplate.get())));
106 } 106 }
107 107
108 return whenSearchDone; 108 return whenSearchDone;
109 }, 109 },
110 110
111 /** @private */ 111 /** @private */
112 onResetDone_: function() { 112 onResetProfileBannerClosed_: function() {
113 this.showResetProfileBanner_ = false; 113 this.showResetProfileBanner_ = false;
114 }, 114 },
115 115
116 /** 116 /**
117 * @return {boolean} 117 * @return {boolean}
118 * @private 118 * @private
119 */ 119 */
120 shouldShowAndroidApps_: function() { 120 shouldShowAndroidApps_: function() {
121 var visibility = /** @type {boolean|undefined} */ ( 121 var visibility = /** @type {boolean|undefined} */ (
122 this.get('pageVisibility.androidApps')); 122 this.get('pageVisibility.androidApps'));
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 /** 190 /**
191 * @param {boolean} opened Whether the menu is expanded. 191 * @param {boolean} opened Whether the menu is expanded.
192 * @return {string} Icon name. 192 * @return {string} Icon name.
193 * @private 193 * @private
194 */ 194 */
195 getArrowIcon_: function(opened) { 195 getArrowIcon_: function(opened) {
196 return opened ? 'cr:arrow-drop-up' : 'cr:arrow-drop-down'; 196 return opened ? 'cr:arrow-drop-up' : 'cr:arrow-drop-down';
197 }, 197 },
198 }); 198 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698