| OLD | NEW | 
|   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 basic settings. |   7  * 'settings-basic-page' is the settings page containing the basic settings. | 
|   8  */ |   8  */ | 
|   9 Polymer({ |   9 Polymer({ | 
|  10   is: 'settings-basic-page', |  10   is: 'settings-basic-page', | 
|  11  |  11  | 
|  12   behaviors: [SettingsPageVisibility, RoutableBehavior], |  12   behaviors: [SettingsPageVisibility, MainPageBehavior], | 
|  13  |  13  | 
|  14   properties: { |  14   properties: { | 
|  15     /** |  15     /** Preferences state. */ | 
|  16      * Preferences state. |  | 
|  17      */ |  | 
|  18     prefs: { |  16     prefs: { | 
|  19       type: Object, |  17       type: Object, | 
|  20       notify: true, |  18       notify: true, | 
|  21     }, |  19     }, | 
|  22  |  20  | 
|  23     /** |  21     /** | 
|  24      * True if the basic page should currently display the reset profile banner. |  22      * True if the basic page should currently display the reset profile banner. | 
|  25      * @private {boolean} |  23      * @private {boolean} | 
|  26      */ |  24      */ | 
|  27     showResetProfileBanner_: { |  25     showResetProfileBanner_: { | 
|  28       type: Boolean, |  26       type: Boolean, | 
|  29       value: function() { |  27       value: function() { | 
|  30         return loadTimeData.getBoolean('showResetProfileBanner'); |  28         return loadTimeData.getBoolean('showResetProfileBanner'); | 
|  31       }, |  29       }, | 
|  32     }, |  30     }, | 
|  33   }, |  31   }, | 
|  34  |  32  | 
|  35   onResetDone_: function() { |  33   onResetDone_: function() { | 
|  36     this.showResetProfileBanner_ = false; |  34     this.showResetProfileBanner_ = false; | 
|  37   }, |  35   }, | 
|  38 }); |  36 }); | 
| OLD | NEW |