| Index: chrome/browser/resources/options/browser_options_startup_page_list.js
|
| diff --git a/chrome/browser/resources/options/browser_options_startup_page_list.js b/chrome/browser/resources/options/browser_options_startup_page_list.js
|
| index 85afdc9f7dc85ce676db257324e2cdb3c3aa88ca..f63aa8ba2695f54184fdcbf3a7d8d69e5594bb2e 100644
|
| --- a/chrome/browser/resources/options/browser_options_startup_page_list.js
|
| +++ b/chrome/browser/resources/options/browser_options_startup_page_list.js
|
| @@ -3,7 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| cr.define('options.browser_options', function() {
|
| - const List = cr.ui.List;
|
| + const DeletableItemList = options.DeletableItemList;
|
| const ListItem = cr.ui.ListItem;
|
|
|
| /**
|
| @@ -50,12 +50,17 @@ cr.define('options.browser_options', function() {
|
| var StartupPageList = cr.ui.define('list');
|
|
|
| StartupPageList.prototype = {
|
| - __proto__: List.prototype,
|
| + __proto__: DeletableItemList.prototype,
|
|
|
| /** @inheritDoc */
|
| - createItem: function(pageInfo) {
|
| + createItemContents: function(pageInfo) {
|
| return new StartupPageListItem(pageInfo);
|
| },
|
| +
|
| + /** @inheritDoc */
|
| + deleteItemAtIndex: function(index) {
|
| + chrome.send('removeStartupPages', [String(index)]);
|
| + },
|
| };
|
|
|
| return {
|
|
|