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-on-startup-page' is a settings page. | 7 * 'settings-on-startup-page' is a settings page. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 * @param {?NtpExtension} ntpExtension | 58 * @param {?NtpExtension} ntpExtension |
59 * @param {number} restoreOnStartup Value of prefs.session.restore_on_startup. | 59 * @param {number} restoreOnStartup Value of prefs.session.restore_on_startup. |
60 * @return {boolean} | 60 * @return {boolean} |
61 * @private | 61 * @private |
62 */ | 62 */ |
63 showIndicator_: function(ntpExtension, restoreOnStartup) { | 63 showIndicator_: function(ntpExtension, restoreOnStartup) { |
64 return !!ntpExtension && restoreOnStartup == this.prefValues_.OPEN_NEW_TAB; | 64 return !!ntpExtension && restoreOnStartup == this.prefValues_.OPEN_NEW_TAB; |
65 }, | 65 }, |
66 | 66 |
67 /** | 67 /** |
68 * Determine whether to show the user defined startup pages. | 68 * Determine whether to show the user defined startup pages. |
69 * @param {number} restoreOnStartup Enum value from prefValues_. | 69 * @param {number} restoreOnStartup Enum value from prefValues_. |
70 * @return {boolean} Whether the open specific pages is selected. | 70 * @return {boolean} Whether the open specific pages is selected. |
71 * @private | 71 * @private |
72 */ | 72 */ |
73 showStartupUrls_: function(restoreOnStartup) { | 73 showStartupUrls_: function(restoreOnStartup) { |
74 return restoreOnStartup == this.prefValues_.OPEN_SPECIFIC; | 74 return restoreOnStartup == this.prefValues_.OPEN_SPECIFIC; |
75 }, | 75 }, |
76 }); | 76 }); |
OLD | NEW |