Chromium Code Reviews| Index: chrome/browser/resources/settings/appearance_page/appearance_page.js |
| diff --git a/chrome/browser/resources/settings/appearance_page/appearance_page.js b/chrome/browser/resources/settings/appearance_page/appearance_page.js |
| index 22c94b8844b01adda10370469e21ca2c5031ab34..a2a42586b8ba8f19dc9f8cecf1b69fd6124fd536 100644 |
| --- a/chrome/browser/resources/settings/appearance_page/appearance_page.js |
| +++ b/chrome/browser/resources/settings/appearance_page/appearance_page.js |
| @@ -130,6 +130,19 @@ Polymer({ |
| }, |
| /** |
| + * @param {boolean} isNtp Whether to use the NTP as the home page. |
| + * @param {string} homepage If not using NTP, use this URL. |
| + * @private {string} The sub-label. |
|
dpapad
2016/03/14 21:33:26
Did you mean this?
* @return {string} The sub-lab
dschuyler
2016/03/14 22:42:24
Thanks!
|
| + */ |
| + getShowHomeSubLabel_: function(isNtp, homepage) { |
| + if (isNtp) |
| + return this.i18n('homePageNtp'); |
| + if (homepage.length == 0) |
| + return this.i18n('exampleDotCom'); |
| + return homepage; |
| + }, |
| + |
| + /** |
| * @param {boolean} enabled Whether the theme reset is available. |
| */ |
| setResetThemeEnabled: function(enabled) { |